Add ToC styling to CSS and settings to default archetype.

This commit is contained in:
tastytea 2021-03-15 16:30:04 +01:00
parent e52a2124a3
commit 54b9b8fab6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,9 @@ type: {{ .Type }}
draft: true
tags:
-
toc: false
---
:source-highlighter: pygments
:toc:
:toclevels: 2

View File

@ -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%;
}