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

github.com/amzrk2/hugo-theme-fuji.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkia <fjacquet@tetrane.com>2020-10-16 18:12:09 +0300
committerSkia <fjacquet@tetrane.com>2020-10-16 18:12:11 +0300
commit4e714b98a01a1d42ee950b4d8c6e093350b2a5b3 (patch)
treec9e7f9fb35275ce015b68e2aa617e3f36810df70 /layouts
parent5b7e4d63d7012f84201adf2e45501208fe95b972 (diff)
Footer improvements
Add multiple new options: - sourceURL: to provide a link to the website source code - showLicenseInFooter: to display the license in the footer - copyrightStartYear: to display the copyright with a range of years
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html18
1 files changed, 13 insertions, 5 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index cb43e10..22c44a3 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,10 +1,18 @@
<footer>
<div class="container-lg clearfix">
<div class="col-12 footer">
- <span>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a> |
- {{ i18n "footerPoweredFront" }}<a href="https://github.com/amzrk2/hugo-theme-fuji/"
- target="_blank">Fuji-v2</a> & <a href="https://gohugo.io/"
- target="_blank">Hugo</a>{{ i18n "footerPoweredEnd" }}</span>
+ {{ if .Site.Params.showLicenseInFooter }}
+ <p>
+ {{ i18n "postCopyrightFront" }}<a rel="license" href="{{ .Site.Params.licenseLink }}" target="_blank">{{ .Site.Params.license }}</a>{{ i18n "postCopyrightEnd" }}
+ </p>
+ {{ end }}
+ <span>&copy; {{ with .Site.Params.copyrightStartYear }}{{ . }}-{{ end }}{{ now.Format "2006" }}
+ <a href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a>
+ {{ with .Site.Params.sourceURL }} | <a href="{{ . }}">source code</a> {{ end }}
+ | {{ i18n "footerPoweredFront" }}<a href="https://github.com/amzrk2/hugo-theme-fuji/"
+ target="_blank">Fuji-v2</a> &amp; <a href="https://gohugo.io/"
+ target="_blank">Hugo</a>{{ i18n "footerPoweredEnd" }}
+ </span>
</div>
</div>
-</footer> \ No newline at end of file
+</footer>