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