From bfa3808cb6ecc3722c570edbcf12960b833364ce Mon Sep 17 00:00:00 2001 From: Alexander Zhang <35056002+BessieTheCookie@users.noreply.github.com> Date: Thu, 22 Apr 2021 12:27:24 -0700 Subject: [PATCH] style: prevent empty p tag when there is no copyright (#2271) --- wowchemy/layouts/partials/site_footer.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wowchemy/layouts/partials/site_footer.html b/wowchemy/layouts/partials/site_footer.html index 915cf376..430b83cf 100644 --- a/wowchemy/layouts/partials/site_footer.html +++ b/wowchemy/layouts/partials/site_footer.html @@ -22,9 +22,11 @@

{{ end }} + {{ with site.Copyright }}

- {{ with site.Copyright }}{{ replace . "{year}" now.Year | markdownify}}{{ end }} + {{ replace . "{year}" now.Year | markdownify }}

+ {{ end }} {{/* Display copyright license. */}} {{ partial "site_footer_license" . }}