aboutsummaryrefslogtreecommitdiff
path: root/src/_includes/posts.njk
diff options
context:
space:
mode:
authorIndrajith K L2022-11-05 03:19:50 +0530
committerIndrajith K L2022-11-05 03:21:54 +0530
commite776c62e6bbaabe5fd1def8394c5497d81d09178 (patch)
treeedfce446b6536bd3db7c904d4acc086d000841fd /src/_includes/posts.njk
parentc391b3793770b2b296d615ee63836a344eeb3a0f (diff)
downloadindrajith-dev-e776c62e6bbaabe5fd1def8394c5497d81d09178.tar.gz
indrajith-dev-e776c62e6bbaabe5fd1def8394c5497d81d09178.tar.bz2
indrajith-dev-e776c62e6bbaabe5fd1def8394c5497d81d09178.zip
Fixes: Wrong Dates in post publication
Adds: Post modified dates
Diffstat (limited to 'src/_includes/posts.njk')
-rw-r--r--src/_includes/posts.njk5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/_includes/posts.njk b/src/_includes/posts.njk
index 1c62004..99eb681 100644
--- a/src/_includes/posts.njk
+++ b/src/_includes/posts.njk
@@ -11,7 +11,7 @@
<div class="flex flex-col justify-start p-6 ">
<div>
<p class="text-3xl bg-rose font-medium text-center text-darkish-200">{{title}}</p>
- <p class="text-lg text-darkish-100 text-center">{{date | dateFilter}}</p>
+ <p class="text-lg text-darkish-100 text-center">{{page.date.toUTCString() | dateFilter}}</p>
</div>
<div class="mt-10 text-xl font-supply-regular text-justify text-darkish-300">
{{content | safe}}
@@ -26,6 +26,9 @@
</span>
</span>
</div>
+ <div class="pt-5 text-xs md:text-justify text-left">
+ <span class="text-center">Post Last Modified: {{modified() | dateFilter}}</span></span>
+ </div>
<div class="my-5">
<a class="justify-start bg-main-red rounded-md p-3 text-main-cream-white-1" href="/posts"><span class="absolute md:text-center text-left">{% feather "arrow-left" %}</span> <span class="ml-7">back to posts</span></a>
</div>