grgr.me

latest commits to https://grgr.me/
Log | Files | Refs

commit aa1eefeb5623cceaf1c5eefbf9e5a31ec15fd0b9
parent 428f7f135a043f0c98c2de0093a3c0484432b214
Author: corndog <cauchyn@firemail.cc>
Date:   Wed, 17 Apr 2019 20:04:06 -0700

Wrap table of contents in details tag

Still not yet implemented in Edge but according
to caniuse.com it will work for 91.5% of all
users, about as much as I can ask for.

Diffstat:
Msite.tmpl | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/site.tmpl b/site.tmpl @@ -41,7 +41,10 @@ Last modified: <time datetime="{{ .Format "2006-01-02" }}">{{ .Format "02 Jan 20 {{ end }} {{ define "toc" }} +<details> +<summary>Contents</summary> <div id="toc"></div> +</details> {{ end }} {{ define "page" }}