From 4b6c0e31385f5f27a151088c0a2b614495c4e589 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 14 Oct 2021 12:47:50 -0400 Subject: initial commit, including theme --- themes/hugo-pt2021/layouts/index.html | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 themes/hugo-pt2021/layouts/index.html (limited to 'themes/hugo-pt2021/layouts/index.html') diff --git a/themes/hugo-pt2021/layouts/index.html b/themes/hugo-pt2021/layouts/index.html new file mode 100644 index 0000000..259e9d2 --- /dev/null +++ b/themes/hugo-pt2021/layouts/index.html @@ -0,0 +1,55 @@ + + + {{- partial "head.html" . -}} + + + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + +
+ {{- $posts := where .Site.RegularPages "Section" "posts" -}} + {{- range first 10 $posts.ByDate.Reverse -}} + {{- $date := .Date.Format "January 2, 2006" -}} + +
+ +

+ {{- .Title -}} +

+
+ +

+ {{- $date -}} +

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