Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pageNav in tweaking the page structure #1127

Merged
merged 11 commits into from
Mar 24, 2020
8 changes: 5 additions & 3 deletions docs/userGuide/plugins/filterTags.mbdf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#### `filterTags`: Toggling alternative contents in a page
## Filter tags
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filter tags is a new term that is not mentioned anywhere else and not a standard term either.

Perhaps Tags?


You can use tags to selectively filter HTML elements when building a site.

### Toggling alternative contents in a page

Tags are specified by the `tags` attribute, **and can be attached to any HTML element**. During rendering, only elements that match tags specified in the `site.json` files will be rendered.

<div class="indented">
Expand Down Expand Up @@ -81,7 +83,7 @@ Alternatively, you can specify tags to render for a page in the front matter.

Tags in `site.json` will be merged with the ones in the front matter, and are processed after front matter tags. See [Hiding Tags](../tweakingThePageStructure.html#hiding-tags) for more information.

#### Advanced Tagging Tips
### Advanced Tagging Tips

You can use a `*` in a tag name to match elements more generally. A `*` in a tag will match any number of characters at its position.

Expand All @@ -103,7 +105,7 @@ All 3 `<p>`s will be shown.

</div>

#### Hiding Tags
### Hiding Tags

Using `-` at the start of a tag hides all tags matching the expression. This is helpful for disabling a group of tags and enabling a particular tag.

Expand Down
2 changes: 1 addition & 1 deletion docs/userGuide/tweakingThePageStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<frontmatter>
title: "User Guide: {{ title }}"
layout: userGuide
pageNav: 3
pageNav: 2
</frontmatter>

<span id="link" class="d-none">
Expand Down