Skip to content

Commit

Permalink
Made the credits in footer optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusTimmer committed Dec 6, 2024
1 parent ed54a7c commit a64b1c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
pager = true
post_meta = ["date", "categories"] # Order of post meta information
mainSections = ["post", "docs"]
show_credits = true

[Params.logo]
subtitle = "Just another site" # Logo subtitle
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{{ partial "footer_links.html" . }}
<div class="footer__copyright">
&copy; {{ now.Format "2006" }} {{ .Site.Params.copyright | default .Site.Title }}.
{{ if .Site.Params.show_credits }}
<span class="footer__copyright-credits">{{ T "footer_credits" | safeHTML }}</span>
{{ end }}
</div>
</div>
</footer>
</footer>

0 comments on commit a64b1c3

Please sign in to comment.