diff options
author | Indrajith K L | 2022-11-05 03:19:50 +0530 |
---|---|---|
committer | Indrajith K L | 2022-11-05 03:21:54 +0530 |
commit | e776c62e6bbaabe5fd1def8394c5497d81d09178 (patch) | |
tree | edfce446b6536bd3db7c904d4acc086d000841fd | |
parent | c391b3793770b2b296d615ee63836a344eeb3a0f (diff) | |
download | indrajith-dev-e776c62e6bbaabe5fd1def8394c5497d81d09178.tar.gz indrajith-dev-e776c62e6bbaabe5fd1def8394c5497d81d09178.tar.bz2 indrajith-dev-e776c62e6bbaabe5fd1def8394c5497d81d09178.zip |
Fixes: Wrong Dates in post publication
Adds: Post modified dates
-rw-r--r-- | src/_includes/assets/css/styles.css | 22 | ||||
-rw-r--r-- | src/_includes/posts.njk | 5 | ||||
-rw-r--r-- | src/posts/big-list-game-dev.njk | 14 |
3 files changed, 18 insertions, 23 deletions
diff --git a/src/_includes/assets/css/styles.css b/src/_includes/assets/css/styles.css index e93ba11..ffecb55 100644 --- a/src/_includes/assets/css/styles.css +++ b/src/_includes/assets/css/styles.css @@ -945,6 +945,10 @@ select { margin-bottom: 0.75rem; } +.mb-4 { + margin-bottom: 1rem; +} + .ml-2 { margin-left: 0.5rem; } @@ -969,10 +973,6 @@ select { margin-left: 2.5rem; } -.mb-4 { - margin-bottom: 1rem; -} - .block { display: block; } @@ -2114,17 +2114,3 @@ svg { line-height: 2rem; } } - -@media (min-width: 1024px) { - .lg\:w-full { - width: 100%; - } - - .lg\:text-left { - text-align: left; - } - - .lg\:text-center { - text-align: center; - } -} 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> diff --git a/src/posts/big-list-game-dev.njk b/src/posts/big-list-game-dev.njk index 679c8ae..1dc03fd 100644 --- a/src/posts/big-list-game-dev.njk +++ b/src/posts/big-list-game-dev.njk @@ -1,7 +1,13 @@ ---- -layout: posts.njk -title: Big List of Open Source Game Development Tools -description: Big List of Open Source Game Development Tools +---js +{ + layout: "posts.njk", + title: "Big List of Open Source Game Development Tools", + description: "Big List of Open Source Game Development Tools", + date: "Created", + modified: function() { + return (new Date().toUTCString()) + } +} --- <p class="mt-5">Welcome to the big list (eventually it will be) of always updating bucket of <span class="font-bold">Open Source Game Development Tools</span>. |