From ceedef84416df22ebc8adb32da466a6a3a2205ef Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Sun, 25 Feb 2024 20:24:44 -0800 Subject: [PATCH] feat: show full date on index --- src/_includes/macros/posts.njk | 4 ++-- src/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_includes/macros/posts.njk b/src/_includes/macros/posts.njk index 1a2da76..9c632fb 100644 --- a/src/_includes/macros/posts.njk +++ b/src/_includes/macros/posts.njk @@ -1,4 +1,4 @@ -{% macro list(posts) %} +{% macro list(posts, format = "MM/DD") %} diff --git a/src/index.html b/src/index.html index fe05e91..9aeb3a9 100644 --- a/src/index.html +++ b/src/index.html @@ -17,10 +17,10 @@ permalink: /

Hand-picked, curated selection of my favourite posts!

{% set favouritePosts = collections.post | filterFavourites | reverse %}
- {{ list(favouritePosts) }} + {{ list(favouritePosts, "MM/DD/YYYY") }}

Recent posts

{% set recentPosts = collections.post | reverse | limit(5) %}
- {{ list(recentPosts) }} + {{ list(recentPosts, "MM/DD/YYYY") }}