style: prevent empty p tag when there is no copyright (#2271)

This commit is contained in:
Alexander Zhang authored and GitHub committed 2021-04-22 20:27:24 +01:00
1 parent e9cec2d3e9
commit bfa3808cb6
1 file changed
+3 -1
+3 -1
View File
@@ -22,9 +22,11 @@
</p>
{{ end }}
{{ with site.Copyright }}
<p class="powered-by">
{{ with site.Copyright }}{{ replace . "{year}" now.Year | markdownify}}{{ end }}
{{ replace . "{year}" now.Year | markdownify }}
</p>
{{ end }}
{{/* Display copyright license. */}}
{{ partial "site_footer_license" . }}