Merge pull request #20 from sm32d/patch-1

Fixed footer to show copyright from site.params.copyright as in config
This commit is contained in:
Mirus 2024-10-02 11:07:17 +03:00 committed by GitHub
commit fab58b1697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,8 @@
<footer class="footer"> <footer class="footer">
<div class="footer__inner"> <div class="footer__inner">
{{ if $.Site.Copyright }} {{ if $.Site.Params.Copyright }}
<div class="copyright copyright--user"> <div class="copyright copyright--user">
<span>{{ $.Site.Copyright | safeHTML }}</span> <span>{{ $.Site.Params.Copyright | safeHTML }}</span>
{{ else }} {{ else }}
<div class="copyright"> <div class="copyright">
<span>© {{ now.Year }} Powered by <a href="https://gohugo.io">Hugo</a></span> <span>© {{ now.Year }} Powered by <a href="https://gohugo.io">Hugo</a></span>