HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

Why isn't there an _index.md for projects? #368

Closed theodore-s-beers closed 6 years ago

theodore-s-beers commented 6 years ago

And there is a file for layouts/section/project.html, but it's empty.

gcushen commented 6 years ago

Projects were initially designed only to be accessed via the Project widget. Furthermore, one of the main principles of Academic is to attempt to simplify things and keep everything on a single page (the home page) where possible.

theodore-s-beers commented 6 years ago

The only part that doesn't sit well with me is that it's inconsistent with the other sections. For example, there's no obvious way (as far as I know) of clicking through to the talk section index, but it exists nonetheless.

gcushen commented 6 years ago

A link to the talk index/archive page appears in the talk widget (not selected talk widget) when you have more talks than fit in the widget. This is controlled by count option in home/talks.md (https://raw.githubusercontent.com/gcushen/hugo-academic/master/exampleSite/content/home/talks.md):

# Number of talks to list.
count = 10

Hence, the link to the index page is consistent with how post and publication widgets link to their index pages.

theodore-s-beers commented 6 years ago

Ah, I hadn't noticed that. (It's unlikely I'll ever have enough talks posted at once to trigger the overflow…) Thanks for the clarification!

Separately, is it considered desirable in web design that each directory, if addressed on its own, should lead somewhere relevant? I'm building a new version of my page that includes a couple projects, and it bothers my OCD that /project goes to 404. I may just add a simple redirect to /#projects.

anayrat commented 6 years ago

Hello,

Google crawler notice me there is no project page. This page is referenced in sitemap.xml

I could create an file _index.md on order to get a blank page instead of 403 or 404. Maybe we should create a layout to list all projects?

Regards,

gcushen commented 6 years ago

@anayrat good point. We should either remove the project index from the sitemap or add a page for it. Since the Project widget is designed to show all projects within the widget, I'm not so sure it's necessary to create another page to list them...

pvonmoradi commented 4 years ago

Personally, I'd have gone with consistency. I believe projects should have a separate page like posts and publications. I was able to do this by copying the academic-kickstart/themes/academic/layouts/section/post.html to academic-kickstart/layouts/section/project.html and creating an _index.md in academic-kickstart/content/project/. Note that this method does not mess with the theme folder.