summaryrefslogtreecommitdiffstats
path: root/layouts/partials/footer.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html31
1 files changed, 15 insertions, 16 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 654a7a8..8fde6f6 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,21 +1,20 @@
-{{ if or site.Params.footer .Params.editor }}
+{{- if or site.Params.footer .Params.editor }}
<div class="sidebar-item">
<p>
- {{ with site.Params.footer }}
- {{ $footerText := replace . "{year}" now.Year }}
- {{ $footerText | safeHTML }}
- {{ end }}
- {{ with .Params.editor }}
- <p>
- {{ i18n "edited_by" . }},
- {{ if not $.Params.Lastmod.IsZero }}
- {{ $.Params.Lastmod.Format "2006" }}
- {{ else }}
- {{ now.Format "2006" }}
- {{ end }}
- .
- </p>
- {{ end }}
+ {{- with site.Params.footer -}}
+ {{- $footerText := replace . "{year}" now.Year -}}
+ {{- $footerText | safeHTML -}}
+ {{- end -}}
</p>
+ {{- with .Params.editor }}
+ <p>
+ {{ i18n "edited_by" . }},&nbsp;
+ {{- if not $.Params.Lastmod.IsZero -}}
+ {{- $.Params.Lastmod.Format "2006" -}}
+ {{- else -}}
+ {{- now.Format "2006" -}}
+ {{- end }}.
+ </p>
+ {{- end }}
</div>
{{ end }}