Following a very good post, I managed to more or less get my head around how to use tags.
One problem which I struggle with is to understand how, in a list template, to get the “parameter” which led to that page.
Taking the example from the post above, specifically taxonomy list templates and reusing the code in this paragraph I indeed get in /tags/value_1
the bulleted list of pages tagged with the specific tag.
I would like to slightly change this code to:
<!-- layouts/taxonomy/tag.html -->
Below is a list of pages with tag {{ I do not know what to put here, it should be value_1 for page /tags/value_1 }}
<ul>
{{ range .Data.Pages }}
<li>
<a href="{{.RelPermalink}}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
In other words I am looking for the “parameter” passed to that list page (though the URL, so to speak), to be reused within this page