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

Serve authors overview page from "/author/" not "/authors/" #1693

Closed mrustl closed 4 years ago

mrustl commented 4 years ago

Describe the bug

Authors overview page is still located in https://academic-demo.netlify.app/authors/ but page for each author now served from https://academic-demo.netlify.app/author/robert-ford.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://academic-demo.netlify.app/authors/' to see authors overview page

grafik

  1. Click on 'Robert Ford' opens at: https://academic-demo.netlify.app/author/robert-ford

grafik

  1. No authors overview page at: https://academic-demo.netlify.app/author/

grafik

Expected behavior

Authors overview page should be also available at: https://academic-demo.netlify.app/author/

which is currently not the case and inconsistent with previous behavior in former hugo-academic versions (e.g. v4.8), where both where served from .../authors/.

Technical details:

Your Netlifly deploy (https://github.com/gcushen/hugo-academic/blob/14839190f693c19969000d451e6308dd3f92586e/netlify.toml).

gcushen commented 4 years ago

Appears to be a limitation of Hugo - raised a Hugo issue at https://github.com/gohugoio/hugo/issues/7274

gcushen commented 4 years ago

Closing this as it appears to be a limitation/bug in Hugo. For any users affected, I suggest upvoting and/or commenting on gohugoio/hugo#7274 .

mrustl commented 4 years ago

So would it not be better to roll-back to "plural" (i.e. "authors") as long as the upstream bug hasn`t been fixed?

mitchellolsthoorn commented 3 years ago

It is actually possible to override the section names by using the url option. In the example below:

config/_default/config.yaml:

permalinks:
  authors: "author/:slug/"
  ... <existing permalinks>

content/authors/_index.md:

---
url: author
... <existing metadata>

both the archive page and the individual author pages are singular. The reverse can also be done for the project and publication sections to make them plural