kaiiiz / hugo-theme-monochrome

Monochrome is a fast, clean and responsive hugo theme
https://kaiiiz.github.io/hugo-theme-monochrome/
MIT License
182 stars 52 forks source link

Is it possible to display and/or filter by tags? #53

Open ToddMCr opened 3 months ago

ToddMCr commented 3 months ago

I have a content directory that looks like:

content
    ├———— _index.md
    ├———— about
    |       └———— index.md
    └———— posts
            ├———— _index.md
            ├———— my-first-post.md
            └———— my-second-post.md

and a config/_default/menus.toml file that has:

[[navbar]]
    identifier = "posts"
    name = "Posts"
    url = "/posts/"
    weight = 1

[[navbar]]
    identifier = "about"
    name = "About"
    url = "/about/"
    weight = 2

I'm wondering if it's possible to 1) display the tags of a given blogpost, for example content/posts/my-first-post.md:

+++
title = 'My First Post'
date = 2024-06-08
tags = ["stats"]
+++

content

this blogpost has the tag "stats", but it does not display in Posts or if I click on the actual post:

image image

2) My other question is it is possible to set up something in Posts so a user could filter for a particular tag(for example, if someone wanted to read only blogposts pertaining to stats, they would filter by the "stats" tag)

Thank you!