Merge remote-tracking branch 'upstream/master'

This commit is contained in:
horochx
2020-03-10 22:26:40 +08:00
12 changed files with 1452 additions and 1225 deletions

View File

@ -9,7 +9,7 @@
<body class="">
{{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }}
<div class="{{- $container -}}">
<div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}">
{{ partial "header.html" . }}

View File

@ -28,7 +28,11 @@
{{ end }}
<div class="post-content">
{{ .Content }}
{{- with .Content -}}
<div>
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">&#8983;</a> ${3}` | safeHTML }}
</div>
{{- end -}}
</div>
{{ if $.Site.Params.showLastUpdated }}
<div class="post-lastmod">