From 120a671a305a4940a3e10722d10a712918906956 Mon Sep 17 00:00:00 2001 From: Paul Le Date: Sat, 29 May 2021 16:06:20 -0400 Subject: [PATCH] #49 Add if statement for showing post date --- _layouts/post.html | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index cb480c05c0..f00095e590 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -7,23 +7,9 @@

{{ page.title }}

- - {{ site.data.settings.post_date_prefix }} - {% assign d = page.date | date: "%-d" %} - {{ page.date | date: "%B" }} - {% case d %} - {% when '1' or '21' or '31' %}{{ d }}st - {% when '2' or '22' %}{{ d }}nd - {% when '3' or '23' %}{{ d }}rd - {% else %}{{ d }}th{% endcase %}, - {{ page.date | date: "%Y" }} - by - {% if page.author %} - {{ page.author }} - {% else %} - {{ site.author }} - {% endif %} - + {% if site.hide_post_date != true %} + {% include post-date.html %} + {% endif %} {% if page.image %}