diff options
author | Linlin Yan <yanlinlin82@gmail.com> | 2020-03-24 15:22:14 +0300 |
---|---|---|
committer | Linlin Yan <yanlinlin82@gmail.com> | 2020-03-24 15:22:14 +0300 |
commit | 19bb01a6d805a05c9f8279c8d12d847e88129c85 (patch) | |
tree | bd08e25239ca63e4317ff66b0027312d36795f51 | |
parent | 8f4789dbd01d2aec413d1ad91bd954cc8c3540b7 (diff) |
Add theme link (#2)
Theme name and link are added below copyright text at the page bottom,
which could be turn on by option 'ShowThemeInfo' in 'config.toml':
```
[params]
ShowThemeInfo = true
```
-rw-r--r-- | layouts/_default/baseof.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 055ef31..8bac5e9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -37,11 +37,14 @@ <footer> <div> <div> - {{ if .Site.Copyright -}} - {{- .Site.Copyright | markdownify -}} + {{- if .Site.Copyright -}} + {{ .Site.Copyright | markdownify }} {{- else -}} © 2019 Linlin Yan. <a href="https://creativecommons.org/licenses/by/4.0/deed.zh">CC-BY-4.0</a> {{- end -}} + {{- if .Site.Params.ShowThemeInfo -}} + <p>Powered by <a href="https://gohugo.io/">Hugo</a> with <a href="https://github.com/yanlinlin82/simple-style">Simple-Style</a> + {{- end -}} </div> </div> </footer> |