Add fake heading template
This commit is contained in:
parent
c1040f67ec
commit
716f1f742b
1 changed files with 9 additions and 0 deletions
9
themes/red/layouts/partials/fake-heading.html
Normal file
9
themes/red/layouts/partials/fake-heading.html
Normal 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 }}
|
||||
|
Loading…
Add table
Reference in a new issue