strolch-website/themes/hugo-theme-learn/exampleSite/content/cont/tags.en.md

714 B

date title weight tags
2018-11-29T08:41:44+01:00 Tags 40
documentation
tutorial

Learn theme support one default taxonomy of gohugo: the tag feature.

Configuration

Just add tags to any page:

---
date: 2018-11-29T08:41:44+01:00
title: Theme tutorial
weight: 15
tags: ["tutorial", "theme"] 
---

Behavior

The tags are displayed at the top of the page, in their insertion order.

Each tag is a link to a Taxonomy page displaying all the articles with the given tag.

List all the tags

In the config.toml file you can add a shortcut to display all the tags

[[menu.shortcuts]]
name = "<i class='fas fa-tags'></i> Tags"
url = "/tags"
weight = 30