diff options
author | Queensferry <queensferry.me@gmail.com> | 2022-04-01 10:49:54 +0300 |
---|---|---|
committer | Queensferry <queensferry.me@gmail.com> | 2022-04-01 10:49:54 +0300 |
commit | 608bc04b738642a1ac4190def8caae1c3ff6031a (patch) | |
tree | a9fd0c256cfdb5a00f4f36cb19b29cac126a0afe | |
parent | 15e74554cdc7091649f219916776942bcfa700d4 (diff) |
feat: allow config website `since` year
-rw-r--r-- | config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.toml b/config.toml index 6716386..064ae86 100644 --- a/config.toml +++ b/config.toml @@ -68,6 +68,7 @@ customJS = [] # path to custom js files, relative to ./static dateFormat = "2006-01-02" # date format, see https://gohugo.io/functions/format/ enableFullRSS = true # rss full-text output enableHanEmph = true # use dots to emphasize chinese texts, see https://zh.wikipedia.org/wiki/%E7%9D%80%E9%87%8D%E5%8F%B7 +since = "2019" # website created year toc = false # whether to enable table of contents in posts [params.math] diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2d16da4..440de8d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@ <footer id="footer"> <div> - <span>© 2019</span> - <span>{{ now.Format "2006"}}</span> + <span>© {{ .Site.Params.since }}</span> - <span>{{ now.Format "2006"}}</span> </div> <div> |