mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-04-27 06:28:32 -04:00
Add table of contents shortcode (#3)
This commit is contained in:
parent
f8e5ca54ec
commit
e7a40d5305
|
@ -23,6 +23,10 @@ main#content p {
|
|||
color: #f5f5f5;
|
||||
}
|
||||
|
||||
main#content #toc h4 {
|
||||
color: #d4d4d4;
|
||||
}
|
||||
|
||||
main#content ul#posts small {
|
||||
color: #a7a7a7;
|
||||
}
|
||||
|
|
|
@ -18,3 +18,6 @@ pygmentsUseClasses = true
|
|||
[markup.goldmark.renderer]
|
||||
# Allow HTML in Markdown
|
||||
unsafe = true
|
||||
|
||||
[markup.tableOfContents]
|
||||
ordered = true
|
||||
|
|
4
layouts/shortcodes/toc.html
Normal file
4
layouts/shortcodes/toc.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<aside id="toc">
|
||||
<h4>Table of Contents</h4>
|
||||
{{ .Page.TableOfContents }}
|
||||
</aside>
|
Loading…
Reference in a new issue