-
Notifications
You must be signed in to change notification settings - Fork 89
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
empty page when clicking on category or tag links #16
Comments
|
thank you. does this pour some light on what is happening with tags and categories? i have just tried latin tags and categories - the pages anyway are empty. |
apparently, the file public/categories/պատմութիւններ/index.xml does contain links to the posts tagged with this category. but the live web page does not show that content. |
I think I found the problem. Hugo uses the names of directories under When you click on a category link, the theme is currently designed to only list content where the "section" is exactly "post", not "posts". The issue should be fixed quickly if you just rename your directory to "posts" and update old links like these. |
mine too is fresh
can you try to download https://github.com/norayr/film-magazine when you'll reproduce it, you can also try the theme 'minimo', under that both tags and categories work. i am also thinking that probably i have something in the content which is extra, or which make the theme to not fully work. |
I fixed the problem! So should it be "post"? |
Hi, good that it works! |
thanks, @codeactual for pointing this. |
ok I see, that tags work only for one directory, mentioned in layout/partials/tag.html on line 7, and categories only work for one directory, mentioned in layout/partials/category.html on line 7. okay, let's say it has to be directory named "post" and we put posts there. I also have a directory "authors" where I put author pages. Can you suggest how to change the line
so that tags would work for more than one directory, for files in "post" and in lets say "authors" as well. thank you. |
This could be a possible solution with a IN operator in the range statement {{{ range where .Paginator.Pages "Section" "in" (slice "aaa" "bbb") }} https://discourse.gohugo.io/t/range-statement-where-clause-with-or-logic-operator/1385/4 |
hello,
clicks on tag or category links bring empty pages.
when I change the theme, the issue disappears.
i guess, may be this is connected to unicode in the names of tags and categories?
reference issue #13 contains links to the github source and online web pages.
reference commit #14 fixed part of the problems described in reference issue.
thank you!
The text was updated successfully, but these errors were encountered: