feat: update style / exampleSite files and compatible with Hugo 0.58

This commit is contained in:
Dillon
2019-09-29 15:56:11 +08:00
parent 42d50ae53c
commit 69068c7cfc
10 changed files with 951 additions and 39 deletions

View File

@@ -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:.+?")>` }}

View File

@@ -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" . -}}

View File

@@ -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:.+?")>` }}