small fixes
This commit is contained in:
parent
a53a2bc095
commit
debd457538
|
@ -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"]
|
||||||
|
|
|
@ -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 }}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user