diff options
author | Qiushi Pan <qiu.gits@gmail.com> | 2019-02-17 04:49:00 +0300 |
---|---|---|
committer | Qiushi Pan <qiu.gits@gmail.com> | 2019-02-17 04:49:00 +0300 |
commit | 801e63f33eca2daab6786233b27d703d7540afca (patch) | |
tree | 36ec38a4a3c244c8d568d171e417fec35826c82a /layouts | |
parent | a118954d777f0512578541d316caa80b18d491b6 (diff) |
Refactor: partial inclusion. Update to configure showFooterCredits
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 6 | ||||
-rw-r--r-- | layouts/partials/copyright.html | 4 | ||||
-rw-r--r-- | layouts/partials/footer.html | 10 |
3 files changed, 11 insertions, 9 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index baa72f5..e62a374 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -68,11 +68,7 @@ </div> <div id="footer" class="pt-2 pb-3 bg-white text-center"> - {{ if (default true .Site.Params.CreditHugoPrimer) }} - <span class="text-small text-gray"> - {{ partial "copyright.html" . }} - </span> - {{ end }} + {{ partial "footer.html" . }} </div> </div> diff --git a/layouts/partials/copyright.html b/layouts/partials/copyright.html index 26fe608..e69de29 100644 --- a/layouts/partials/copyright.html +++ b/layouts/partials/copyright.html @@ -1,4 +0,0 @@ -{{ with .Site.Copyright }}{{ . | markdownify }} · {{ end }} -Powered by the -<a href="https://github.com/qqhann/hugo-primer" class="link-gray-dark">Hugo-Primer</a> theme for -<a href="https://gohugo.io" class="link-gray-dark">Hugo</a>. diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..bea94a8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ +{{/* Credits and Copyright */}} +{{ if (default true .Site.Params.ShowFooterCredits) }} + <span class="text-small text-gray"> + {{ with .Site.Copyright }}{{ . | markdownify }} · {{ end }} + + Powered by the + <a href="https://github.com/qqhann/hugo-primer" class="link-gray-dark">Hugo-Primer</a> theme for + <a href="https://gohugo.io" class="link-gray-dark">Hugo</a>. + </span> +{{ end }} |