Skip to content
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

Tags links returning a 404 #515

Open
rk295 opened this issue Aug 31, 2021 · 0 comments
Open

Tags links returning a 404 #515

rk295 opened this issue Aug 31, 2021 · 0 comments

Comments

@rk295
Copy link

rk295 commented Aug 31, 2021

I've noticed the links to the tag page return a 404, the rendered link is (in this example) tags/elasticsearch which is a directory and does exist, but it only contains the xml file. The actual list page is elasticsearch.html in the root of the tags directory:

% ls -ld ela* ; ls -l elasticsearch
drwxr-xr-x  3 robin  staff     96 31 Aug 11:17 elasticsearch
-rw-r--r--  1 robin  staff  35044 31 Aug 11:17 elasticsearch.html
total 16
-rw-r--r--  1 robin  staff  4099 31 Aug 11:17 index.xml

Changing the link in tags.html to be:

  <a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}.html">{{ . }}</a>

fixes the problem. Is this a bug with my config or the theme?

Hugo version hugo v0.87.0+extended darwin/amd64 BuildDate=unknown.

maxatome pushed a commit to maxatome/hugo-theme-learn that referenced this issue Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant