Add front matter for various display options

This commit is contained in:
James Panther
2021-08-15 11:21:37 +10:00
parent 73218ce192
commit 491d356d15
6 changed files with 27 additions and 19 deletions
+1 -1
View File
@@ -1 +1 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a class="heading-anchor" href="#{{ .Anchor | safeURL }}" aria-label="Anchor">#</a></h{{ .Level }}>
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} {{ if .Page.Params.showHeadingAnchors | default (.Page.Site.Params.article.showHeadingAnchors | default true) }}<a class="heading-anchor" href="#{{ .Anchor | safeURL }}" aria-label="Anchor">#</a>{{ end }}</h{{ .Level }}>
+1 -1
View File
@@ -17,7 +17,7 @@
{{ .Content | emojify }}
</section>
<footer>
{{ partialCached "author.html" . }}
{{ partial "author.html" . }}
{{ partial "article-pagination.html" . }}
</footer>
{{/* Comments */}}