Closed ghost closed 5 years ago
It does not appear to be a bug. I cannot reproduce it on the Example Site with or without your permalinks setting.
Perhaps your site is not fully upgraded or not using compatible Hugo version (0.55.2+). Check that your config files match that of the latest Example Site including the full taxonomies configurations:
[taxonomies]
tag = "tags"
category = "categories"
publication_type = "publication_types"
author = "authors"
Please post on the forums with a link to your repo if you continue to experience issues after reviewing the above.
RE what would it take to have an easier upgrade process for migrating content and config to new theme versions, this falls in the realm of the Hugo team - there is not much more we can do this side. Currently, Hugo lacks dependency management and lacks any form of migration framework for upgrading a site to be compatible with new versions of Hugo and themes. The Django CMS supports automating migration, so why not add something similar in Hugo for themes/sites? Feel free to add your Hugo feedback on the Hugo forums/GitHub.
I've experienced "something similar" to this issue after the upgrade.
By example, on this post:
https://imalexissaez.github.io/2019/04/24/presentando-desarreglos/
I have 3 tags and 2 of them work perfectly but one doesn't ("Principio de inclusión-exclusión"), because it links to the post instead of to the list of posts under that tag.
However, if I access the list associated to that tag through the widget Tags of the Homepage (https://imalexissaez.github.io/tags/principio-de-inclusi%C3%B3n-exclusi%C3%B3n/), it works perfectly.
Repo: https://github.com/ImAlexisSaez/academic-kickstart
EDIT: I have just found that this behavior happens when I use tags with several words.
@gcushen appreciate your response and the obvious and extensive work that goes into Academic. @ImAlexisSaez do you think that the spaces in your tag "Principio de inclusión-exclusión" could have something to do with the problem? My Categories also have spaces e.g. "Lutheran Library Publications". Perhaps something changed in Hugo which places restrictions on taxonomy terms. Just wondering.
Ah- just saw that we have come to the same conclusion.
Thanks for clarifying the issue. The cause is that Hugo 0.55.2+ has breaking changes which affect some URLs. We can release a fix for it.
As per subject, after upgrading and working through each of the "breaking changes" sections, the category metadata links no longer go to the category sections. For example:
Under 3.3: a post in the category "Lutheran Library Publications" has this active link in the metadata: https://www.lutheranlibrary.org/categories/lutheran-library-publications/
Under 4.25: The same post with the category "Lutheran Library Publications: has this active link in the metadata: http://localhost:1313/120tc-luther-first-principles-reformation/
In config/_default/config.toml, permalinks are set as follows: [permalinks] post = "/:slug/"
Thanks for any help with this. Academic is great, but this migration is proving to be harder than anticipated.
I've tried to troubleshoot this, but without success.