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

Easy way to access CATEGORY_TITLES/CATEGORY_DESCRIPTIONS from tags.tmpl #3584

Closed
Kwpolska opened this issue Nov 7, 2021 Discussed in #3583 · 0 comments · Fixed by #3585
Closed

Easy way to access CATEGORY_TITLES/CATEGORY_DESCRIPTIONS from tags.tmpl #3584

Kwpolska opened this issue Nov 7, 2021 Discussed in #3583 · 0 comments · Fixed by #3585

Comments

@Kwpolska
Copy link
Member

Kwpolska commented Nov 7, 2021

Discussed in #3583

Originally posted by kai-tub November 5, 2021
Hi :)

Thank you again for providing such a nice static site generator!
I am working on customizing my personal theme and the current goal is to have a category-based landing page.

With CATEGORY_TITLES/CATEGORY_DESCRIPTIONS I can update the category information into a prettier version.
These variables are then used when the category (index) page itself is rendered.
Now I would like to be able to re-use the information in the tags.tmpl page such that I can use the pretty category name as a link with the description to provide extra information.
The category name and description would then be combined into a card with an optional image for easier navigation.

Is there an easy way to accomplish this?
Or am I too stuck on the tags.tmpl and should just create a different template and try to use that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant