Im using hugo with theme Smigle in debian, which is using hugo v0.131, but im trying to use nix-shell to use hugo v0.147, which works but the taxonomy pages ‘author’ and ‘tags’ arent loading anymore.
The hugo site is hosted on github, and the updated version were im working on is in the branch ‘nix-shell-hugo-014’: https://github.com/GabR36/site/tree/nix-shell-hugo-0147
[nix-shell:~/source/gabch]$ hugo env
hugo v0.147.3+extended+withdeploy linux/amd64 BuildDate=unknown VendorInfo=nixpkgs
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.24.4"
github.com/sass/libsass="3.6.6"
github.com/webmproject/libwebp="v1.3.2"
I changed the terms.html to term.html and other changes referenced on that article (changes are on github), but it seems to not be looking at those pages and instead looking at the theme layouts.
Ok, I changed the layout so it doesn’t interfere and it indeed started looking at my layout. But the term page wasn’t showing anything and the taxonomy was the same for both authors and tags, so I figured out the taxonomy pages was looking at term.html and term page was looking for taxonomy.html, so I changed one file name for the other’s file name and it worked perfectly.
Do you know if the taxonomy.html and term.html reversed each other’s roles, and if it was a change from v0.147? because i didn’t find anything about that in the article you brought.
I have no idea what you’re doing, but you’re doing it wrong. Is the repository you referenced above current with your local changes? If so, which branch or commit should I be looking at?
it holds pages for each author to introduce himself. Like saying who he is, his interests, social media, etc. thats not related to the taxonomy itself. the taxonomy should show all the authors and the term shows all the posts of the author. though, the authors_page is acessible at the taxonomy page too, but just as a link. (the term has the link of the author_page and the link to the page term).
We are failing to communicate. From the screen captures I provided above, the taxonomy template is rendering the taxonomy page, and the term template is rendering the term page, so from my perspective there isn’t a problem here.
Indeed there is no problem. I just am curious about the switch of roles of taxonomy and term that seems to happen from hugo v0.131 to hugo v0.147. In the following screenshots i tried to write on the terms.html and taxonomy.html on the main branch with hugo v0.131 and you can see the roles are inverted.
*[{{ templates.Current.Filename }}] doesnt work on hugo v0.131.
We did not switch the roles of “taxonomy.html” and “term.html” (singular). Their functions remain the same.
However, we did change how Hugo handles situations where both “taxonomy.html” and “terms.html” (plural) are present in the same directory.
Before version 0.146.0, the lookup rules were a bit complicated due to backward compatibility efforts with older versions (specifically v0.72.0 and earlier). In short:
If both “taxonomy.html” and “terms.html” (plural) were in the same directory:
“terms.html” (plural) was used to render taxonomy pages.
“taxonomy.html” was used to render term pages.
If only “taxonomy.html” was present, it rendered taxonomy pages as expected.
With v0.146.0 and later:
Never create a “terms.html” (plural) template
“taxonomy.html” always renders a taxonomy page; it never renders a term page.