From 8462bbf70addda57cb1e15d850538be32764acf7 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Thu, 31 Jan 2019 12:17:50 -0800 Subject: [PATCH] Add TOC column to docs Signed-off-by: lucperkins --- themes/falco-fresh/assets/style.sass | 1 + themes/falco-fresh/assets/toc.sass | 1 + .../falco-fresh/layouts/partials/docs/article.html | 14 ++++++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 themes/falco-fresh/assets/toc.sass diff --git a/themes/falco-fresh/assets/style.sass b/themes/falco-fresh/assets/style.sass index 8e5ddcd73..75025a067 100644 --- a/themes/falco-fresh/assets/style.sass +++ b/themes/falco-fresh/assets/style.sass @@ -15,6 +15,7 @@ $section-padding: 1rem @import "bulma/bulma" @import "fresh/core" +@import "toc" .content ol margin-left: 1rem diff --git a/themes/falco-fresh/assets/toc.sass b/themes/falco-fresh/assets/toc.sass new file mode 100644 index 000000000..dba84ba11 --- /dev/null +++ b/themes/falco-fresh/assets/toc.sass @@ -0,0 +1 @@ +.toc diff --git a/themes/falco-fresh/layouts/partials/docs/article.html b/themes/falco-fresh/layouts/partials/docs/article.html index cb2a52347..cafde1eee 100644 --- a/themes/falco-fresh/layouts/partials/docs/article.html +++ b/themes/falco-fresh/layouts/partials/docs/article.html @@ -1,8 +1,18 @@
-
- {{ .Content }} +
+
+
+ {{ .Content }} +
+
+ +
+
+ {{ .TableOfContents }} +
+