Add ToC styling to CSS and settings to default archetype.
This commit is contained in:
parent
e52a2124a3
commit
54b9b8fab6
|
@ -7,6 +7,9 @@ type: {{ .Type }}
|
|||
draft: true
|
||||
tags:
|
||||
-
|
||||
toc: false
|
||||
---
|
||||
|
||||
:source-highlighter: pygments
|
||||
:toc:
|
||||
:toclevels: 2
|
||||
|
|
|
@ -158,3 +158,23 @@ kbd
|
|||
border: var(--fg-dim) solid 0.1em;
|
||||
border-radius: 0.2em;
|
||||
}
|
||||
|
||||
.toc
|
||||
{
|
||||
float: right;
|
||||
margin-left: 1em;
|
||||
padding: 0 0.2em;
|
||||
max-width: 40ch;
|
||||
box-shadow: 0 0 0.1em;
|
||||
border-radius: 0.1em;
|
||||
}
|
||||
|
||||
.toc h2, .toc ul, .toc ol
|
||||
{
|
||||
margin: 0 0;
|
||||
}
|
||||
|
||||
.toc h2
|
||||
{
|
||||
font-size: 120%;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user