align with latest Hugo. Hugo is a piece of shit!
This commit is contained in:
parent
f53cc0573b
commit
422f416612
@ -3,11 +3,13 @@ languageCode = "en-us"
|
|||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
title = "Anubis2 Demo Site"
|
title = "Anubis2 Demo Site"
|
||||||
theme = "anubis2"
|
theme = "anubis2"
|
||||||
paginate = 5
|
|
||||||
|
|
||||||
disqusShortname = ""
|
disqusShortname = ""
|
||||||
|
|
||||||
[author]
|
[pagination]
|
||||||
|
pagerSize = 5
|
||||||
|
|
||||||
|
|
||||||
|
[params.author]
|
||||||
name = "Junyi"
|
name = "Junyi"
|
||||||
email = "me@junyi.dev"
|
email = "me@junyi.dev"
|
||||||
location = "Singapore"
|
location = "Singapore"
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{ $readNextPosts := 3}}
|
{{ $readNextPosts := 3}}
|
||||||
{{ if isset .Site.Params "readnextposts" }}
|
{{ if site.Params.readNextPosts }}
|
||||||
{{ $readNextPosts = .Site.Params.readNextPosts }}
|
{{ $readNextPosts = site.Params.readNextPosts }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if gt $readNextPosts 0 }}
|
{{ if gt $readNextPosts 0 }}
|
||||||
@ -56,7 +56,7 @@
|
|||||||
{{ partial "resource.html" (dict "context" . "type" "js" "filename" "js/load-mermaid.js") }}
|
{{ partial "resource.html" (dict "context" . "type" "js" "filename" "js/load-mermaid.js") }}
|
||||||
|
|
||||||
{{ $colorTheme := "light" }}
|
{{ $colorTheme := "light" }}
|
||||||
{{ if and (isset site.Params "colortheme") (ne site.Params.colortheme "") }}
|
{{ if and (site.Params.colortheme) (ne site.Params.colortheme "") }}
|
||||||
{{ $colorTheme = site.Params.colortheme | lower }}
|
{{ $colorTheme = site.Params.colortheme | lower }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -5,23 +5,23 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="common-footer-bottom">
|
<div class="common-footer-bottom">
|
||||||
{{ if .Site.Menus.footer }}
|
{{ if site.Menus.footer }}
|
||||||
{{ $currentPage := . }}
|
{{ $currentPage := . }}
|
||||||
<ul class="footer-menu">
|
<ul class="footer-menu">
|
||||||
{{ range .Site.Menus.footer }}
|
{{ range site.Menus.footer }}
|
||||||
<li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
|
<li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div style="display: flex; align-items: center; gap:8px">
|
<div style="display: flex; align-items: center; gap:8px">
|
||||||
© {{ if isset .Site.Params.author "name"}}{{ .Site.Params.author.name }}, {{end}}{{ now.Year }}
|
© {{ if site.Params.Author.name }} {{ site.Params.Author.name }}, {{end}} {{ now.Year }}
|
||||||
{{ if .Site.Params.UmamiAnalytics.shareUrl }}
|
{{ if site.Params.UmamiAnalytics.shareUrl }}
|
||||||
<a aria-label="Check statistics data" style="display: flex; align-items: center; border-bottom: none; cursor: pointer; color: var(--pagination-link-color)" href="{{ .Site.Params.UmamiAnalytics.shareUrl }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-report-analytics"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M9 17v-5" /><path d="M12 17v-1" /><path d="M15 17v-3" /></svg></a>
|
<a aria-label="Check statistics data" style="display: flex; align-items: center; border-bottom: none; cursor: pointer; color: var(--pagination-link-color)" href="{{ site.Params.UmamiAnalytics.shareUrl }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-report-analytics"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M9 17v-5" /><path d="M12 17v-1" /><path d="M15 17v-3" /></svg></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div style="display:flex;align-items: center">
|
<div style="display:flex;align-items: center">
|
||||||
{{ $police := .Site.Params.police }}
|
{{ $police := site.Params.police }}
|
||||||
{{ $info := "info" }}
|
{{ $info := "info" }}
|
||||||
{{ $pattern := "[0-9]+" }}
|
{{ $pattern := "[0-9]+" }}
|
||||||
{{ $matches := findRE $pattern $police }}
|
{{ $matches := findRE $pattern $police }}
|
||||||
@ -29,11 +29,11 @@
|
|||||||
{{ $firstNumber := index $matches 0 }}
|
{{ $firstNumber := index $matches 0 }}
|
||||||
{{ $info = print $firstNumber }}
|
{{ $info = print $firstNumber }}
|
||||||
<img src="https://beian.mps.gov.cn/img/logo01.dd7ff50e.png" alt="备案图标" style="width: 1em;height: 1em;object-fit: contain;">
|
<img src="https://beian.mps.gov.cn/img/logo01.dd7ff50e.png" alt="备案图标" style="width: 1em;height: 1em;object-fit: contain;">
|
||||||
<a target="_blank" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{$info}}">{{ .Site.Params.police }}</a>
|
<a target="_blank" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{$info}}">{{ site.Params.police }}</a>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.icp }}
|
{{ if site.Params.icp }}
|
||||||
<a target="_blank" href="https://beian.miit.gov.cn/">{{ .Site.Params.icp }}</a>
|
<a target="_blank" href="https://beian.miit.gov.cn/">{{ site.Params.icp }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user