Skip to content

Commit

Permalink
Merge pull request #166 from noraj/patch-5
Browse files Browse the repository at this point in the history
mydoc_tags.md: tags style
  • Loading branch information
tomjoht committed Mar 28, 2021
2 parents c4a8ce9 + 37b9ef3 commit 1bf57e0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pages/mydoc/mydoc_tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,29 @@ 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
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 <code>posts.tags.tagname</code>, where <code>tagname</code> 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 <code>tags</code>. Nevertheless, I'm using the same <code>tags</code> approach for posts as with pages." %}
Expand Down

0 comments on commit 1bf57e0

Please sign in to comment.