Add text var

master
Will Faught 3 months ago
parent 0744138bb0
commit c6b7a1422e

@ -5,6 +5,7 @@
{{ $new := $context.Level }} {{ $new := $context.Level }}
{{ $old := $context.Level }} {{ $old := $context.Level }}
{{ $page := $context.Page }} {{ $page := $context.Page }}
{{ $text := $context.Text }}
{{ $attrs := merge $context.Attributes $defaults }} {{ $attrs := merge $context.Attributes $defaults }}
@ -56,5 +57,5 @@
{{ end }} {{ end }}
<h{{ $old }} {{ range $k, $v := $attrs }} {{ printf `%s="%s"` $k $v | safeHTMLAttr }} {{ end }}> <h{{ $old }} {{ range $k, $v := $attrs }} {{ printf `%s="%s"` $k $v | safeHTMLAttr }} {{ end }}>
<a href="#{{ $context.Anchor }}" style="color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)); text-decoration: none">{{ $context.Text }}</a> <a href="#{{ $context.Anchor }}" style="color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)); text-decoration: none">{{ $text }}</a>
</h{{ $old }}> </h{{ $old }}>

Loading…
Cancel
Save