From 716f1f742b1325fd133ab8d7723981527b6d6a46 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 10 Aug 2023 18:45:29 -0400 Subject: [PATCH] Add fake heading template --- themes/red/layouts/partials/fake-heading.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 themes/red/layouts/partials/fake-heading.html diff --git a/themes/red/layouts/partials/fake-heading.html b/themes/red/layouts/partials/fake-heading.html new file mode 100644 index 0000000..23d61df --- /dev/null +++ b/themes/red/layouts/partials/fake-heading.html @@ -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 }} +# +{{ printf "" $header_type | safeHTML }} +