Explorar o código

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

Alexander Zhang %!s(int64=4) %!d(string=hai) anos
pai
achega
bfa3808cb6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      wowchemy/layouts/partials/site_footer.html

+ 3 - 1
wowchemy/layouts/partials/site_footer.html

@@ -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" . }}