about summary refs log tree commit diff
path: root/layouts/partials/left-sidebar.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/left-sidebar.html')
-rw-r--r--layouts/partials/left-sidebar.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/left-sidebar.html b/layouts/partials/left-sidebar.html
new file mode 100644
index 0000000..403afc7
--- /dev/null
+++ b/layouts/partials/left-sidebar.html
@@ -0,0 +1,14 @@
+<details open>
+  <summary>{{ i18n "sections" }}</summary>
+  <ul>
+    {{ range sort .Site.Sections.ByTitle }}
+    <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
+    {{ end }}
+  </ul>
+</details>
+{{ if gt (len .TableOfContents) 32 }}
+<details open id="toc">
+  <summary>{{ i18n "TOC" }}</summary>
+  {{ .TableOfContents }}
+</details>
+{{ end }}