Skip to content

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

@ToddMCr

Description

@ToddMCr

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
  1. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions