From e776c62e6bbaabe5fd1def8394c5497d81d09178 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 5 Nov 2022 03:19:50 +0530 Subject: Fixes: Wrong Dates in post publication Adds: Post modified dates --- src/_includes/assets/css/styles.css | 22 ++++------------------ src/_includes/posts.njk | 5 ++++- 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 @@

{{title}}

-

{{date | dateFilter}}

+

{{page.date.toUTCString() | dateFilter}}

{{content | safe}} @@ -26,6 +26,9 @@
+
+ Post Last Modified: {{modified() | dateFilter}} +
{% feather "arrow-left" %} back to posts
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()) + } +} ---

Welcome to the big list (eventually it will be) of always updating bucket of Open Source Game Development Tools. -- cgit v1.2.3