small fixes

This commit is contained in:
teldra 2022-04-08 21:13:24 +02:00
parent a53a2bc095
commit debd457538
4 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,7 @@ featured = 'featured'
nonprofit = true nonprofit = true
[outputs] [outputs]
home = ["HTML"] home = ["HTML", "RSS"]
section = ["HTML", "RSS"] section = ["HTML", "RSS"]
page = ["HTML"] page = ["HTML"]
taxonomy = ["HTML", "RSS"] taxonomy = ["HTML", "RSS"]

View File

@ -1,6 +1,8 @@
{{- $baseurl := .Page.Permalink | safeURL -}}
{{- $url := printf "%s#%s" $baseurl .Anchor -}}
<h{{ .Level }} id="{{ .Anchor | safeURL }}"> <h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }} {{ .Text | safeHTML }}
<a class="heading-anchor" href="#{{ .Anchor | safeURL }}" 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 }}>