Merge pull request #72 from MoritzFago/fix-atribution

Fix attribution if copyright is set by user.
This commit is contained in:
Radek Kozieł 2019-08-24 08:06:18 +02:00 committed by GitHub
commit 8d8e93fa8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,14 @@
<footer class="footer"> <footer class="footer">
<div class="footer__inner"> <div class="footer__inner">
{{ if $.Site.Copyright }} {{ if $.Site.Copyright }}
<div class="copyright copyright--user">{{ $.Site.Copyright | safeHTML }}</div> <div class="copyright copyright--user">
<span>{{ $.Site.Copyright | safeHTML }}</span>
{{else}} {{else}}
<div class="copyright"> <div class="copyright">
<span>© {{ now.Year }} Powered by <a href="http://gohugo.io">Hugo</a></span> <span>© {{ now.Year }} Powered by <a href="http://gohugo.io">Hugo</a></span>
{{end}}
<span>:: Theme made by <a href="https://twitter.com/panr">panr</a></span> <span>:: Theme made by <a href="https://twitter.com/panr">panr</a></span>
</div> </div>
{{end}}
</div> </div>
</footer> </footer>