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

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2022-04-01 10:49:54 +0300
committerQueensferry <queensferry.me@gmail.com>2022-04-01 10:49:54 +0300
commit608bc04b738642a1ac4190def8caae1c3ff6031a (patch)
treea9fd0c256cfdb5a00f4f36cb19b29cac126a0afe
parent15e74554cdc7091649f219916776942bcfa700d4 (diff)
feat: allow config website `since` year
-rw-r--r--config.toml1
-rw-r--r--layouts/partials/footer.html2
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>