feat: update style / exampleSite files and compatible with Hugo 0.58
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
{{ $REin = `<sup>\[return\]</sup>` }}
|
||||
{{ $REout = printf "<sup>[%s]</sup>" (T "return") }}
|
||||
{{ $content = replaceRE $REin $REout $content }}
|
||||
{{ $REin = `<(h[23456]) (id=".+?")>` }}
|
||||
{{ $REin = `<(h[123456]) (id=".+?")>` }}
|
||||
{{ $REout = `<a class="post-dummy-target" $2></a><$1>` }}
|
||||
{{ $content = replaceRE $REin $REout $content }}
|
||||
{{ $REin = `<(sup class="footnote-ref") (id="fnref:.+?")>` }}
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
<div class="post-warp">
|
||||
{{- partial "home/profile.html" . -}}
|
||||
|
||||
{{- $paginator := .Paginate (where (where .Data.Pages "Type" "posts") ".Params.show_in_homepage" "!=" false) }}
|
||||
{{ range $paginator.Pages -}}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") -}}
|
||||
{{ range where $paginator.Pages "Params.show_in_homepage" "!=" false -}}
|
||||
{{ .Render "summary" -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ partial "paginator.html" . }}
|
||||
{{ partial "paginator.html" . -}}
|
||||
</div>
|
||||
{{- else -}}
|
||||
{{ partial "home/profile.html" . -}}
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
{{ $REin = `<sup>\[return\]</sup>` }}
|
||||
{{ $REout = printf "<sup>[%s]</sup>" (T "return") }}
|
||||
{{ $content = replaceRE $REin $REout $content }}
|
||||
{{ $REin = `<(h[23456]) (id=".+?")>` }}
|
||||
{{ $REin = `<(h[123456]) (id=".+?")>` }}
|
||||
{{ $REout = `<a class="post-dummy-target" $2></a><$1>` }}
|
||||
{{ $content = replaceRE $REin $REout $content }}
|
||||
{{ $REin = `<(sup class="footnote-ref") (id="fnref:.+?")>` }}
|
||||
|
||||
Reference in New Issue
Block a user