Skip to content

Commit

Permalink
Merge pull request #24 from arunmathaisk/main
Browse files Browse the repository at this point in the history
feat: Content License and Copyright holder as Footer
  • Loading branch information
tomfran authored Sep 17, 2024
2 parents 3bf5b50 + ef9948b commit eaf952c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<footer>
{{ partial "footer.html" . }}
</footer>

</body>

<script>
Expand Down
19 changes: 14 additions & 5 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<p>Powered by
<a href="https://gohugo.io/">Hugo</a>
and
<a href="https://github.com/tomfran/typo">tomfran/typo</a>
</p>
{{ $showFooter := default true .Site.Params.showFooter }}
{{ if $showFooter }}
{{ if not .Site.Params.footerContent }}
<p>Powered by
<a href="https://gohugo.io/">Hugo</a>
and
<a href="https://github.com/tomfran/typo">tomfran/typo</a>
</p>
{{ end }}

{{ with .Site.Params.footerContent }}
<p>{{ . | markdownify }}</p>
{{ end }}
{{ end }}

{{ if .Param "math" }}
{{ partialCached "math.html" . }}
Expand Down

0 comments on commit eaf952c

Please sign in to comment.