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.37k stars 2.91k forks source link

Some tag and category links not working after upgrading to Hugo 0.55.2+ #1053

Closed ghost closed 5 years ago

ghost commented 5 years ago

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.

gcushen commented 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.

gcushen commented 5 years ago

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.

ImAlexisSaez commented 5 years ago

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.

ghost commented 5 years ago

@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.

gcushen commented 5 years ago

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.