diff options
author | DSRKafuU | 2020-10-17 10:13:39 +0800 |
---|---|---|
committer | GitHub | 2020-10-17 10:13:39 +0800 |
commit | 5ad25342d238848a90a961891c7a7537be50899b (patch) | |
tree | c9e7f9fb35275ce015b68e2aa617e3f36810df70 | |
parent | 5b7e4d63d7012f84201adf2e45501208fe95b972 (diff) | |
parent | 4e714b98a01a1d42ee950b4d8c6e093350b2a5b3 (diff) | |
download | hugo-theme-fuji-5ad25342d238848a90a961891c7a7537be50899b.tar.gz hugo-theme-fuji-5ad25342d238848a90a961891c7a7537be50899b.tar.bz2 hugo-theme-fuji-5ad25342d238848a90a961891c7a7537be50899b.zip |
merge: pull request #54 from Hyask/master
Footer improvements
-rw-r--r-- | exampleSite/config.toml | 9 | ||||
-rw-r--r-- | layouts/partials/footer.html | 18 |
2 files changed, 22 insertions, 5 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5b2eafe..602cd2d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -34,6 +34,9 @@ paginate = 10 author = "DSRKafuU" # You can also set author in post front matter individually subTitle = "A minimal Hugo theme." + # Source URL of the website, will appear in the footer + sourceURL = "https://github.com/itsme/my_blog" + # Use CloudFlare Workers to accelerate the Google Analytics # If you are using this please comment the googleAnalytics above # Check https://github.com/SukkaW/cloudflare-workers-async-google-analytics for more details @@ -48,10 +51,16 @@ paginate = 10 showWordCounter = true showReadTime = false + # License in the footer + showLicenseInFooter = false + # License at the end of each post showLicense = true showToc = true + # Copyright + copyrightStartYear = "2020" + # Open Graph & Twitter Card variables # You can also set description and images in post front matter individually description = "A minimal Hugo theme with nice theme color." 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>© {{ 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>© {{ 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> & <a href="https://gohugo.io/" + target="_blank">Hugo</a>{{ i18n "footerPoweredEnd" }} + </span> </div> </div> -</footer>
\ No newline at end of file +</footer> |