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

Add an easy link to the "tags" and "categories" pages on the main page. #2

Open
zo0o0ot opened this issue Oct 12, 2017 · 2 comments
Open

Comments

@zo0o0ot
Copy link
Contributor

zo0o0ot commented Oct 12, 2017

Hugo already makes pages for categories and tags. They are here:
https://sermonarchives.github.io/categories/
https://sermonarchives.github.io/tags/

However, there isn't an easy link to them from the main page.

It would be nice to have that.

@ankushChatterjee
Copy link

We can make the headers of "Categories" and "Tags" in the sidebar of the index page into links to the mentioned pages.
I would love to work on this.

@zo0o0ot
Copy link
Contributor Author

zo0o0ot commented Oct 15, 2017

I agree, that sounds good.

I think in order for the link to stick around, we need to add categories.html and tags.html in
https://github.com/sermonarchives/blog/tree/master/layouts/partials
and override the existing theme html with the addition of the link.

The confusion for me is this: The code is all "hugo-ed", so I'm not sure where to put the relative link.
For example, here is tags.html:

{{ with .Site.Taxonomies.tags }}
{{ partial "taxonomy.html" (dict "context" $.Site "key" "tags" "value" . "baseurl" $.Site.BaseURL) }}
{{ end }}

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

No branches or pull requests

2 participants