Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/StaticMania/portio-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordnth <dickson.neoh@gmail.com>2022-02-13 13:48:01 +0300
committerdnth <dickson.neoh@gmail.com>2022-02-13 13:48:01 +0300
commitd08818f09659a9f008d5ccc2defcce37e913adb2 (patch)
tree7053d758a4493bb2163867ee4e26ee75c7a9b49c
parent8c94ec86e3d21c65db51b0ba0983884a652925a2 (diff)
add toc
-rw-r--r--layouts/shortcodes/toc.html8
-rw-r--r--static/style.css3
2 files changed, 11 insertions, 0 deletions
diff --git a/layouts/shortcodes/toc.html b/layouts/shortcodes/toc.html
new file mode 100644
index 0000000..03a20c9
--- /dev/null
+++ b/layouts/shortcodes/toc.html
@@ -0,0 +1,8 @@
+<div>
+ <link rel="stylesheet" href="/style.css">
+ <h3>
+ Table of Contents
+ </h3>
+
+ {{ .Page.TableOfContents }}
+</div> \ No newline at end of file
diff --git a/static/style.css b/static/style.css
new file mode 100644
index 0000000..1f571bb
--- /dev/null
+++ b/static/style.css
@@ -0,0 +1,3 @@
+nav > ul > li {
+ list-style: none;
+ } \ No newline at end of file