-
Notifications
You must be signed in to change notification settings - Fork 906
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
Listing content by Taxonomy doesn't work #272
Comments
Hmm, that's strange. It might need its own list.html layout to display the results. I'll take a look. What version of Hugo are you using, as I think there's some newish Taxonomy stuff in recent versions. |
I'm currently using 0.69 and I've tested on 0.66 and 0.68 with the same results. I have yet to try out the newer 0.70 from last week. I've got some time later this week to try a few other things, so I'll report back if I figure anything else out. |
Sorry for the delay in responding, life has been busy. Here's everything I've done with the default Docsy example site in this testing: I edited config.toml and removed
I added created ./docsy/layouts/partials/article_meta.html
I created ./docsy/layouts/partials/article_tags.html
Then in an article I add something like My functioning list.html on other hugo sites:
|
This is due to Docsy not defining any appropriate template for a single taxonomy or a taxonomy listing, e.g of the templates listed at the following: the only one defined by docsy is
Since taxonomy pages do not have defined Adding implementations of |
Ahhhh, thanks for that. I'll have a play around with adding those templates and see if I can get it working. |
Interesting, none of the Hugo sites I've used before have a tag.html or tag.terms.html defined. Actually none of them have had anything special in any way that I can figure out which allows the taxonomies to work, but maybe I'm missing something obvious. |
Ok, so I managed to get this working, but right now its raw and ugly so it doesn't fit into the rest of the nice docsy themeing I'll work on cleaning it up and then file a PR. Or If I cant manage to get the themeing cleaned up, I'll just push it to a fork and let you pull what you need. |
I was planning to add this as well, so if you feel inclined to share your new template files I'd sure appreciate it. @nlundquist: Does the list template get used for pages that generate subdirectory listings? I haven't been entirely happy with how that currently works in Docsy, but wasn't entirely sure which template to touch. |
@b-jsshapiro hopefully I can get time this weekend to finish up the PR, then you can see exactly how I have the template set up. |
@q5sys Can you tell me how you got it working? I'm still coming up with blank pages... |
@honzik20 all my work is here: https://github.com/q5sys/docsy |
Hi, I find this really interesting and would also like to use it. Is there any update on this? :) |
Hi @huehnerlady, yes I've started a new PR #554 which is ready to merge (since about 5-6 hours). I'm only waiting for some feedback (#554 (comment)) and some issues with the google-cla bot have to been solved ;-) |
Hoping you can point me in the right direction.
I've got Docsy installed and its working great.
I wanted to add tagging into it, so I've edited my config.toml to add
and I then removed
disableKinds = ["taxonomy", "taxonomyTerm"]
Ive written my tags partial, and added the partial to content.html.
When I add the taxonomy to the front matter of a markdown file, the tags render properly.
However when I click one, I expect to get the list of all taxonomies in the typical way that Hugo does that, however all I ever get is a blank page.
I'm trying to track down what in Docsy would be causing this, and the only thing I can come up with is that list.html has been changed.
Would that be it, or is there something else in Docsy which would break Hugo from being able to display the list of taxonomies? From my understanding that's a built in feature of Hugo, and I've never had any problems using it before.
Thanks!
The text was updated successfully, but these errors were encountered: