forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
debd457538
commit
ebd3e485ce
|
@ -1,8 +1,10 @@
|
|||
{{- $baseurl := .Page.Permalink | safeURL -}}
|
||||
{{- $url := printf "%s#%s" $baseurl .Anchor -}}
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
||||
{{ .Text | safeHTML }}
|
||||
<a class="heading-anchor" href="{{ $url }}" style="color: var(--text-muted); font-size: smaller;">
|
||||
{{ "#" }}
|
||||
</a>
|
||||
</h{{ .Level }}>
|
||||
{{ if $.Page.OutputFormats.Get "RSS" }}
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</h{{ .Level }}>
|
||||
{{ else }}
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
||||
{{ .Text | safeHTML }}
|
||||
<a class="heading-anchor" href="{{ .Anchor }}" style="color: var(--text-muted); font-size: smaller;">
|
||||
{{ "#" }}
|
||||
</a>
|
||||
</h{{ .Level }}>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue