aboutsummaryrefslogtreecommitdiff
path: root/layouts/posts/page.html
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-09-26 17:40:43 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2025-09-26 17:40:43 +0200
commit583c01de122be399dcbf200ccc3f8bb8687c2cd1 (patch)
tree8afa844c8e720fa09d70190168791bc177b4cae0 /layouts/posts/page.html
parent9a1294965f82a112079f29447e5e04ecc1f5e4ed (diff)
Added the changes that allow for blogging
Diffstat (limited to 'layouts/posts/page.html')
-rw-r--r--layouts/posts/page.html7
1 files changed, 7 insertions, 0 deletions
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" }}
+ <h1>{{ .Title }}</h1>
+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
+ {{ $dateHuman := .Date | time.Format "2006-01-02" }}
+ <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+ {{ .Content }}
+{{ end }}