From 7a76469d3a001aa63289f9698ffc784a4c1926ed Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 28 May 2022 16:30:22 +0200 Subject: Add `{{< mini-toc >}}` shortcode --- CHANGELOG.md | 1 + exampleSite/content/about.md | 4 ++++ layouts/shortcodes/mini-toc.html | 1 + 3 files changed, 6 insertions(+) create mode 100644 layouts/shortcodes/mini-toc.html diff --git a/CHANGELOG.md b/CHANGELOG.md index c674c69..a5eaa3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add multilanguage support - Add Russian translation - Provide an ability to use hreflang attribute in raw links +- Add `{{< mini-toc >}}` shortcode ### Changed diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index b8fa060..1142466 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -54,3 +54,7 @@ for you, Kindle! To learn how to install and begin using Ed, please visit our [documentation page]({{< relref "/documentation" >}} "Visit the documentation"). + +--- + +{{< mini-toc >}} diff --git a/layouts/shortcodes/mini-toc.html b/layouts/shortcodes/mini-toc.html new file mode 100644 index 0000000..88ce192 --- /dev/null +++ b/layouts/shortcodes/mini-toc.html @@ -0,0 +1 @@ +{{- partial "mini-toc" . -}} -- cgit v1.2.3