Skip to content

Page references

Overview

In case your page itself is a term definition, It is possible to put term definition in the page's metadata:

---
terms:
  - <section>: <term>
---

If a term definition is placed in the page`s meta data, the page is added to the glossary with the given section with an empty description.

This allows to link to the page using the <section:term> syntax:

-   See <demo:page reference> for details

Example

Anchors

It is possible to refer to an title (or any other anchor in the page) in the definition:

---
terms:
  - <section>: "<term>#anchor"
---

Multiple terms

It is possible to define multiple terms for sections as well:

---
terms:
  - <section>:
    - <term>
    - <term>: <anchor>
---

Example

---
terms:
  - demo:
    - term1
    - term2: help
  - configuration:
    - term3
---

Default section

Adding page references to default the default section:

---
terms:
  - <term>
  - "<term>#<anchor>"
---

Example

---
terms:
  - term1
  - "term2#help"
---

Definitions

The page reference uses the following rules in the given order to determine the definition of the term:

  1. If a anchor definition is defined for the term, the anchor definition is used
  2. If a page subtitle is defined in the page meta-data, the subtitle is used
  3. The page title is used

Anchor definitions

The anchor definitions allow to specify the definition for a term for page references:

---
terms:
  ...
anchors:
    - <name>: <definition>
---

Example

---
anchors:
  - help: Definition of help
---