Taxonomy for Authors returns 404

Hi,
I have taxonomies setup.
Config

[taxonomies]
Tag = "tags"
Category = "categories"
author = "authors"

Taxonomies templates works for tags and categories but not Authors. Is there something I am not doing?
localhost:1313/tags/name - Works
localhost:1313/authors/name - Doesn’t work - 404 page.

I checked through older post and I don’t see any solution on those.

This portion of your configuration is fine. Something else is broken.

You are more likely to receive a prompt and accurate response if you post a link to the public repository for your project.

See https://discourse.gohugo.io/t/requesting-help/9132.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

Here’s what I did:

git clone --recurse-submodules https://github.com/TjeerdA/core-cognition
cd core-cognition
hugo server

Then I can visit http://localhost:1313/authors/ … no 404 error.

However, this page has no terms (authors) because:

  1. Your templates are broken
  2. None of your published content has any assigned authors

It does have authors.
Please check this kruger-dunning | Core-cognition

Check blog - The Kruger Dunning post in BLog.

  • How do you mean my templates are broken? That link shared up there - is the netlify link that works with the github I just shared.
  • Please check blog - Kruger dunning. You can also check the Basics folder.

On my machine - localhost:1313/authors/ works perfectly. What version of hugo are you using?

No, it does not.

In content/English/blog/kruger-dunning.md you have:

Author:
  - Tjeerd Andringa

But your taxonomy is authors… plural. Details matter.

  1. Delete this. It’s useless. https://github.com/TjeerdA/core-cognition/blob/master/layouts/taxonomy/single.html
  2. This is useless too. It doesn’t range through pages. https://github.com/TjeerdA/core-cognition/blob/master/layouts/taxonomy/terms.html
2 Likes

Thanks. Oopz I missed the s in author. Thank you.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.