commit: 9dd5ef4d15b53b4f34269754560ffa749277826f
parent 6355bc982ef9beb6f61932b4d53237352e753395
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 9 Feb 2024 08:51:40 +0100
bookmarks.xsl.in: Add Table of Contents
Diffstat:
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/bookmarks.xsl.in b/bookmarks.xsl.in
@@ -15,7 +15,17 @@
<p>
This is generated from <a href="/bookmarks.xbel">/bookmarks.xbel</a>, a standard-compliant <a href="http://pyxml.sourceforge.net/topics/xbel/">XBEL</a> file, which you can process and import in some browsers. (XSLT file used for it: <a href="/bookmarks.xsl">/bookmarks.xsl</a>).<br />
It currently contains <xsl:number value="count(//bookmark)"/> links.
- </p><xsl:apply-templates select="/xbel/folder"/>
+ </p>
+
+ <details id="toc" open="">
+ <summary>Table of Contents <a href="#toc">§</a></summary>
+ <ul><xsl:for-each select="/xbel/folder">
+ <li><a href="#{title}"><xsl:value-of select="title" /></a></li></xsl:for-each>
+ </ul>
+ </details>
+
+ <xsl:apply-templates match="/xbel/folder"/>
+
<section id="Misc">
<h2>Misc <a href="#Misc">§</a></h2>
<dl><xsl:apply-templates select="/xbel/bookmark"/>