From c0995ce9d3e2ffedc1d3b8ceac2660e674ca4095 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Wed, 1 May 2024 18:19:44 +0100 Subject: [PATCH] Gemini: Add timestamp to note --- layouts/index.gmi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/index.gmi b/layouts/index.gmi index 832813c0..8eb2e336 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -38,9 +38,11 @@ Get in touch if you'd like to go to these, or any other events⁺, together! => /calendar/ 🗓️ My events calendar {{ end }} -## A recent note {{ $notePage := index (where .Site.RegularPages "Section" "eq" "notes") 0 -}} -{{ with $notePage }}{{ partial "markdown.gmi" .Page.RenderShortcodes }}{{ end }} +{{ with $notePage }}## A recent note +📅 {{ .Page.Date.Format "January 2, 2006 — 15:04 (MST)" }} + +{{ trim (partial "markdown.gmi" .Page.RenderShortcodes) "\r\n " }}{{ end }} ## Me, elsewhere You can find me across the world wide web; here are a handful of ways to get in touch.