-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link to taxonomy lists fails with custom permalinks #4130
Comments
I think this is a documentation issue. It should be possible to do this without "manual URL construction". @rdwatters are those your examples? I'll keep this open for now -- in case this isn't currently possible, we should make it. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
I am interested in knowing how to support custom permalinks of taxonomy in templates as well. Is it possible to do this now? How? |
If PR #4796 is merged, then you won't need to hardcode anymore. You could use
which would be resolved to whatever url I already take advantage of this in my fork of Hugo. |
@bep I think this issue should be re-opened. |
It looks like we could use:
Perhaps I should submit a PR to modify the document? Currently it says:
, which certainly still fails with custom permalinks. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The links in the samples expects the taxonomy list to be at the default location:
https://gohugo.io/templates/taxonomy-templates/#order-taxonomies
but that will fail with a custom permalink introduced in v0.31 since the page is probably not rendered at /PLURAL/TERM/.
The only workaround I've found is to create a per-term page for the custom link instead of the general _default/terms.html template.
The text was updated successfully, but these errors were encountered: