Skip to content

Commit

Permalink
Fix missing author name in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
lindemann-co committed Sep 27, 2024
1 parent c83a4d8 commit 18f5129
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions themes/hello-friend-ng/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@
{{if or (.Site.Params.footer.trademark) (.Site.Params.footer.author) (.Site.Params.footer.copyright) (.Site.Params.footer.rss) (.Site.Params.footer.topText) }}
<div class="footer__inner">
<div class="footer__content">
{{ if .Site.Params.footer.trademark }}<span>&copy; {{ now.Format "2006" }}</span>{{ end }}
{{ if .Site.Params.footer.author }}<span><a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a></span>{{ end }}
{{ if .Site.Params.footer.copyright }}<span>{{ .Site.Copyright| safeHTML }}</span>{{ end }}
{{ if .Site.Params.footer.rss }}<span><a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></span>{{ end }}
{{ range .Site.Params.footer.topText }}<span>{{ . | safeHTML}}</span>{{ end }}
{{ if .Site.Params.footer.trademark }}
<span>&copy; {{ now.Format "2006" }}</span>
{{ end }}
{{ if .Site.Params.footer.author }}
<span><a href="{{ .Site.BaseURL }}">
{{ .Site.Params.Author.name }}</a>
</span>
{{ end }}
{{ if .Site.Params.footer.copyright }}
<span>{{ .Site.Copyright| safeHTML }}</span>
{{ end }}
{{ if .Site.Params.footer.rss }}
<span><a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></span>
{{ end }}
{{ range .Site.Params.footer.topText }}
<span>{{ . | safeHTML}}</span>
{{ end }}
</div>
</div>
{{ end }}
Expand Down

0 comments on commit 18f5129

Please sign in to comment.