I’m totally new to Hugo and stumbled upon this post as a result of a web search for “hugo link to tag”. However, what I meant was something different: how can I link to / reference a tag (and a category) in a markdown file (blog post / article / page / …)? Like if I want to say something like “… see my articles under the tag
xyz …” where
xyz would then be the actual link to that tag when the pages get rendered by Hugo.
I hope it’s understandable?!
Thanks so much!
The topic you were replying to is several years old now and is a different question to the original. I’ve opened a new topic for you.
Is your question about how to form hyperlinks in markdown?
see my articles filed under [xyz](https://example.org/tags/xyz)
Produces: see my articles filed under xyz
Nope, that I know.
I was wondering how to link to a tag, what’s the URL for a tag.
Your example helped and it works! Thank you!
I was just reading about the ref and relref shortcodes here and thought that when linking to internal pages there might be a shortcode for linking to tags and categories as well.
But apparently there’s not and a link to a self-invented tag is just
And a link to a category works with
Which brings me to a related question (should I open a new topic for it?): what URL would list all the posts that are in category
cat1 and have the tag
Hugo does not generate such a page.