From 85d82f4dfce3f2b791cffb6e3bcf70e0d0c6df25 Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Tue, 25 Oct 2022 10:59:23 -0600 Subject: [feat] Add post dates --- layouts/post.njk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/post.njk b/layouts/post.njk index 0c0e4a9..53deceb 100644 --- a/layouts/post.njk +++ b/layouts/post.njk @@ -4,10 +4,12 @@ layout: page.njk

{{ title }}

+ {%- set postDate = date.toISOString().slice(0,10) %} +

{%- if heroImg %} {{ heroImgAlt }} - {% endif -%} + {%- endif %} {{ content | safe }} -- cgit v1.2.3-70-g09d2