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 }} +
+