Jelajahi Sumber

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

Alexander Zhang 4 tahun lalu
induk
melakukan
bfa3808cb6
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      wowchemy/layouts/partials/site_footer.html

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

@@ -22,9 +22,11 @@
   </p>
   </p>
   {{ end }}
   {{ end }}
 
 
+  {{ with site.Copyright }}
   <p class="powered-by">
   <p class="powered-by">
-    {{ with site.Copyright }}{{ replace . "{year}" now.Year | markdownify}}{{ end }}
+    {{ replace . "{year}" now.Year | markdownify }}
   </p>
   </p>
+  {{ end }}
 
 
   {{/* Display copyright license. */}}
   {{/* Display copyright license. */}}
   {{ partial "site_footer_license" . }}
   {{ partial "site_footer_license" . }}