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

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Wiesler <jakewiesler@gmail.com>2020-06-25 19:21:47 +0300
committerJake Wiesler <jakewiesler@gmail.com>2020-06-25 19:21:47 +0300
commit95c820e4cda078bbace3e57315a27446f9613cb1 (patch)
tree1a73b180460e161f6f2490b06e844276b16dde7f /layouts
parent9a4b63d22ba4396ed65d3b16affcb3fcbf6b784a (diff)
refactor: add post-title to ToC
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 5068977..c229f40 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -28,7 +28,10 @@
</div>
</div>
{{ if or .Params.toc .Site.Params.toc }}
+ <div class="toc-container">
+ <div class="toc-post-title">{{.Title}}</div>
{{ .TableOfContents }}
+ </div>
{{ end }}
</div>