Add copyright holder global param

This commit is contained in:
vimux 2019-01-03 10:23:18 -05:00
parent a11f2684bc
commit ff1883aa39
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34
2 changed files with 2 additions and 1 deletions

View file

@ -87,6 +87,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
[Params]
description = "Responsive card-based & code-light Hugo theme" # Description of your site. Used in meta description
copyright = "Binario" # Copyright holder, otherwise will use .Site.Title
opengraph = true # Enable OpenGraph if true
twitter_cards = true # Enable Twitter Cards if true
cardsPerRow = 2 # Possible values: 1, 2, 3

View file

@ -1,5 +1,5 @@
<footer class="footer">
{{- partial "footer_social.html" . }}
{{- partial "footer_menu.html" . }}
<div class="footer__copyright">© {{ now.Format "2006" }} {{ .Site.Title }}. <span class="footer__copyright-credits">{{ T "footer_credits" | safeHTML }}</span></div>
<div class="footer__copyright">© {{ now.Format "2006" }} {{ .Site.Params.copyright | default .Site.Title }}. <span class="footer__copyright-credits">{{ T "footer_credits" | safeHTML }}</span></div>
</footer>