Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiangyun Huang <xiangyunfaith@outlook.com>2022-07-04 07:37:17 +0300
committerGitHub <noreply@github.com>2022-07-04 07:37:17 +0300
commit30558c1dd9d8aa3d345140d1a003ca6fa0b9331d (patch)
tree4c73c49abf1e5ba74aacb1a2044081832995400c
parentd1499ad03083f9513970006f7a2b99dc9a9c4b5e (diff)
支持定制「最近更新」的文本 (#21)
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index fbdb85e..8d2df71 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -31,7 +31,7 @@
{{ end }}
{{ else }}
<span>{{ $.Scratch.Get "Title" }}</span>
- <span>{{ now.Format "2006-01-02" }}</span>
+ <span>{{ .Site.Params.text.last_update }}{{ now.Format "2006-01-02" }}</span>
{{ $pages := .Pages }}
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
{{ $paginator := .Paginate (where $pages "Section" "!=" "") }}