From 71fd1826729a8aed7100455e020b5323d859df60 Mon Sep 17 00:00:00 2001 From: Nathan Long Date: Tue, 19 Mar 2024 08:53:40 -0400 Subject: [PATCH] Adding ISO timestamps for new posts and fixing homepage archive link --- bin/new.sh | 5 +++-- content/index.njk | 10 +++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bin/new.sh b/bin/new.sh index d4b5ba4..5558747 100755 --- a/bin/new.sh +++ b/bin/new.sh @@ -8,10 +8,11 @@ e_question "What's the slug gonna be? (lowercase, dash-separated)" read slug e_question "What's the title? (string)" read title -e_question "What tags? array:[motion, neovim, thoughts, tooling]" +e_question "What tags? array:[motion, neovim, process, thoughts, tooling]" read tags new_path="content/blog/${slug}.md" -new_date="$(date '+%Y-%m-%d')" +# Use ISO timestamp: https://rknight.me/blog/eleventy-post-dates/ +new_date="$(date '+%Y-%m-%dT%H:%M:%S%z')" touch ${new_path} # Prepend yaml, we have to rewrite the file back in tho :( diff --git a/content/index.njk b/content/index.njk index a79db9e..5f3e72c 100644 --- a/content/index.njk +++ b/content/index.njk @@ -1,10 +1,14 @@ --- layout: layouts/full.njk +extraJS: +- name: rive + src: https://unpkg.com/@rive-app/canvas@2.7.0 + --- -
+
-
+

Nathan Long

Designer brain,
developer heart.

UI Developer at Viget

@@ -23,7 +27,7 @@ layout: layouts/full.njk {% set postslistCounter = collections.posts | length %} {% include "postslist.njk" %} - Archive → + More Words →