Generates a list of anchor links within the page right hand sidebar, based on the structure of main page content.

Comes in two variants:

  • Anchor links (auto generated)
  • Table of Contents (based on custom heading tags)

Example - Anchor links


Example - Table of Contents


Macro - Anchor links


{{ anchorlinks({
  title: "On this page",
  headings: "h2,h3,h4,h5,h6"
  })
}}
  

HTML - Anchor links

<div class="hee-anchorlinks" data-headings="h2,h3,h4,h5,h6">
    <h2 data-anchorlinksignore="true">On this page</h2>
</div>
  

Macro - Table of Contents


{{ anchorLinks({
  title: "Table of Contents",
  toc: true
  })
}}

<div class="hee-anchorlinks" data-toc-js="true">
    <h2>Table of Contents</h2>
</div>