[websites/rkward-kde-org] /: Add inline TOCs

Thomas Friedrichsmeier null at kde.org
Mon Apr 21 12:44:18 BST 2025


Git commit 91f9a7683675f1ed0d4e7a54ff20017d0a378df1 by Thomas Friedrichsmeier.
Committed on 21/04/2025 at 08:03.
Pushed by tfry into branch 'master'.

Add inline TOCs

M  +1    -2    content/Binaries_and_Build_Scripts.md
M  +1    -1    content/RKWard_for_Newcomers.md
A  +6    -0    layouts/shortcodes/inline-toc.html

https://invent.kde.org/websites/rkward-kde-org/-/commit/91f9a7683675f1ed0d4e7a54ff20017d0a378df1

diff --git a/content/Binaries_and_Build_Scripts.md b/content/Binaries_and_Build_Scripts.md
index 8c9e097..e970a1e 100644
--- a/content/Binaries_and_Build_Scripts.md
+++ b/content/Binaries_and_Build_Scripts.md
@@ -9,8 +9,7 @@ This page provides links to the relevant information pages for the various distr
 If your distribution is not listed, or does not provide an up-to-date-package, consider [building RKWard from source](Building_RKWard_From_Source.html),
 and/or filing a support ticket against your distribution.
 
-* 
-{:toc}
+{{< inline-toc >}}
 
 ## AppImage
 
diff --git a/content/RKWard_for_Newcomers.md b/content/RKWard_for_Newcomers.md
index bca6635..be22312 100644
--- a/content/RKWard_for_Newcomers.md
+++ b/content/RKWard_for_Newcomers.md
@@ -7,7 +7,7 @@ layout: page
 You will find here a short introduction to RKWard's main features.
 
 * Table of contents
-{:toc}
+{{< inline-toc >}}
 
 ## Getting started
 
diff --git a/layouts/shortcodes/inline-toc.html b/layouts/shortcodes/inline-toc.html
new file mode 100644
index 0000000..0a38584
--- /dev/null
+++ b/layouts/shortcodes/inline-toc.html
@@ -0,0 +1,6 @@
+ <div class="inline-toc">
+
+   {{ .Page.TableOfContents }}
+
+ </div>
+ 



More information about the rkward-tracker mailing list