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

github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pi <info@pavel-pi.de>2022-06-03 15:32:12 +0300
committerPavel Pi <info@pavel-pi.de>2022-06-03 15:32:12 +0300
commitffaf2375cda92564df7d035ba9f2ead80d71f6be (patch)
tree7d9293d3ebdb61fd32a15266fb861d5975070c9b
parenta40531b554bdb9004a5a7087bcd4d7e0d5251e87 (diff)
added table of contentsHEADmaster
-rw-r--r--layouts/partials/article.html3
-rw-r--r--static/css/style.css23
2 files changed, 26 insertions, 0 deletions
diff --git a/layouts/partials/article.html b/layouts/partials/article.html
index de3225e..fb46dc6 100644
--- a/layouts/partials/article.html
+++ b/layouts/partials/article.html
@@ -20,6 +20,9 @@
<!-- Article Title -->
<h1 class="title">{{ .Title }}</h1>
+<!-- Table of Contents -->
+{{ .TableOfContents }}
+
<div class="content">
<!-- Article Content -->
diff --git a/static/css/style.css b/static/css/style.css
index d8faab9..00932fe 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -1,3 +1,26 @@
+#TableOfContents {
+ background: transparent;
+ margin-bottom: 2rem;
+ font-size: 1.1em;
+}
+
+#TableOfContents a {
+ color: #b52323;
+}
+
+#TableOfContents a:hover {
+ border-bottom: 1px solid #b52323;
+}
+
+#TableOfContents a + ul {
+ padding-left:2em;
+}
+
+#TableOfContents a + ul strong {
+ color: #b52323;
+ font-weight: 620;
+}
+
.card,
.highlight,
.highlight pre,