From 583c01de122be399dcbf200ccc3f8bb8687c2cd1 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 26 Sep 2025 17:40:43 +0200 Subject: Added the changes that allow for blogging --- layouts/posts/page.html | 7 +++++++ layouts/posts/section.html | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 layouts/posts/page.html create mode 100644 layouts/posts/section.html (limited to 'layouts/posts') diff --git a/layouts/posts/page.html b/layouts/posts/page.html new file mode 100644 index 0000000..dd21496 --- /dev/null +++ b/layouts/posts/page.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format "2006-01-02" }} + + {{ .Content }} +{{ end }} diff --git a/layouts/posts/section.html b/layouts/posts/section.html new file mode 100644 index 0000000..eedc63e --- /dev/null +++ b/layouts/posts/section.html @@ -0,0 +1,12 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} + +{{ end }} -- cgit v1.3.1