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

Display tags/labels of blog posts #35

Closed
lunkwill42 opened this issue Jan 20, 2023 · 3 comments
Closed

Display tags/labels of blog posts #35

lunkwill42 opened this issue Jan 20, 2023 · 3 comments
Assignees

Comments

@lunkwill42
Copy link
Member

#34 cleans up the tags of the blog posts somewhat. However, there isn't currently any template code to display post tags.

Tags do not need to be prominent in a blog post (they probably belong in an <aside> at the end of each blog post body). An HTML list of tags would do, and styled as grey-ish "labels" beneath each blog post (i.e. no need for fancy colors).

There is also currently no way to navigate posts by tag, but this is a separate issue.

@lunkwill42
Copy link
Member Author

Something like this after {{ .Content }} in full-blog-body.html might do:

        {{ if .Params.Tags }}
        <aside class="tags">
          <ul>
            {{ range .Params.Tags }}
            <li>{{ . }}</li>
            {{ end }}
          </ul>  
        </aside>
        
        {{ end }}

@podliashanyk
Copy link
Contributor

There is also currently no way to navigate posts by tag, but this is a separate issue.

Created #38

@lunkwill42
Copy link
Member Author

Fixed by #41

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

2 participants