Add fake heading template

This commit is contained in:
Joshua Goins 2023-08-10 18:45:29 -04:00
parent c1040f67ec
commit 716f1f742b

View file

@ -0,0 +1,9 @@
{{ $header_type := .Scratch.Get "header-type" }}
{{ $header_name := .Scratch.Get "header-name" }}
{{ $id := urlize $header_name }}
{{ printf "<%s id=\"%s\">" $header_type $id | safeHTML }}
{{ $header_name }}
<a href="#{{ $id }}">#</a>
{{ printf "</%s>" $header_type | safeHTML }}