Unable to render pages which is using tags

title: 'A Blog Post1'
tags: ['value_1', 'value_2']
title: 'A Blog Post2'
tags: ['value_1', 'value_3']

I tried something above in the markdown files to use tags, but the expected outcome is when i click on the tags(for example value_1) on the page it should render to all the pages which has same tag( for example A Blog Post1 and A Blog Post2).

In my case when click on any of the tag, it is redirecting to tags page and showing all the tags but not the pages which contain those tags. Is this how hugo/discourse works ? or is there any configuration tweak required ?



{{ with .GetTerms "tags" }}
    {{ range . }}
      <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
    {{ end }}
{{ end }}

i tried with the above code snippet but no luck

Then you need to share a link to the public repository for your project.

See https://discourse.gohugo.io/t/requesting-help/9132.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.