diff --git a/pages/mydoc/mydoc_tags.md b/pages/mydoc/mydoc_tags.md index 0d809aefc..7d979963a 100644 --- a/pages/mydoc/mydoc_tags.md +++ b/pages/mydoc/mydoc_tags.md @@ -11,9 +11,10 @@ folder: mydoc --- ## Add a tag to a page + You can add tags to pages by adding `tags` in the frontmatter with values inside brackets, like this: -``` +```yaml --- title: 5.0 Release Notes permalink: release_notes_5_0.html @@ -21,6 +22,18 @@ tags: [formatting, single_sourcing] --- ``` +or inside an unordered list, like this: + +```yaml +--- +title: 5.0 Release Notes +permalink: release_notes_5_0.html +tags: + - formatting + - single_sourcing +--- +``` + ## Tags overview {% include note.html content=" With posts, tags have a namespace that you can access with posts.tags.tagname, where tagname is the name of the tag. You can then list all posts in that tag namespace. But pages don't off this same tag namespace, so you could actually use another key instead of tags. Nevertheless, I'm using the same tags approach for posts as with pages." %}