diff options
author | Xiangyun Huang <xiangyunfaith@outlook.com> | 2022-07-04 07:37:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 07:37:17 +0300 |
commit | 30558c1dd9d8aa3d345140d1a003ca6fa0b9331d (patch) | |
tree | 4c73c49abf1e5ba74aacb1a2044081832995400c | |
parent | d1499ad03083f9513970006f7a2b99dc9a9c4b5e (diff) |
支持定制「最近更新」的文本 (#21)
-rw-r--r-- | layouts/partials/header.html | 2 |
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" "!=" "") }} |