Skip to content

Commit

Permalink
Footer: replace the attribution with licenses and source code link
Browse files Browse the repository at this point in the history
  • Loading branch information
Expurple committed Oct 13, 2024
1 parent e97ad7b commit d7a0801
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ highlightCurrentMenu = true
# The sections to display in the recent articles list. If not provided, the section with the most articles is used.
mainSections = ["posts"]
# Whether to remove Hugo and theme attribution in the footer.
removeAttribution = false
removeAttribution = true
# Whether to show anchor links in headings. Can be overridden by Page-specific `showHeadingAnchors` in its front matter.
showHeadingAnchors = true
# Whether to enable search. Needs JSON output for this to work.
Expand Down
16 changes: 16 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- Forked from themes/kayal/layouts/partials/footer.html to add licences -->
<footer>
<div class="copyright">
{{ with .Site.Params.copyright }} © {{ dateFormat "2006" now }} {{ . | safeHTML }} {{ end }}
</div>
<div class="licences">
The content is <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
The <a href="https://github.com/expurple/home.expurple.me">source code</a> is
<a href="https://opensource.org/license/MIT">MIT</a>
</div>
{{ if not .Site.Params.removeAttribution }}
<div class="attribution">
Built with <a href="https://gohugo.io" target="_blank">Hugo</a> & <a href="https://github.com/mnjm/kayal" target="_blank">Kayal</a>
</div>
{{ end }}
</footer>

0 comments on commit d7a0801

Please sign in to comment.