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/articles/list.html | 31 +++++++++++++++++++++++++ themes/hugo-pt2021/layouts/articles/single.html | 22 ++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 themes/hugo-pt2021/layouts/articles/list.html create mode 100644 themes/hugo-pt2021/layouts/articles/single.html (limited to 'themes/hugo-pt2021/layouts/articles') diff --git a/themes/hugo-pt2021/layouts/articles/list.html b/themes/hugo-pt2021/layouts/articles/list.html new file mode 100644 index 0000000..8db3f26 --- /dev/null +++ b/themes/hugo-pt2021/layouts/articles/list.html @@ -0,0 +1,31 @@ +{{- define "title" -}} + Articles +{{- end -}} + +{{- define "main" -}} +
+
+

+ Articles +

+ +
+
    + {{- range .Pages -}} + {{- if default true .Params.show -}} +
  • + + {{- .Title -}} + +
  • + {{- end -}} + {{- end -}} +
+
+
+
+{{- end -}} diff --git a/themes/hugo-pt2021/layouts/articles/single.html b/themes/hugo-pt2021/layouts/articles/single.html new file mode 100644 index 0000000..76d5c00 --- /dev/null +++ b/themes/hugo-pt2021/layouts/articles/single.html @@ -0,0 +1,22 @@ +{{- define "title" -}} + {{.Title}} +{{- end -}} + +{{- define "main" -}} +
+
+

+ {{- .Title -}} +

+ {{- if .Date -}} +

+ {{- .Date.Format "January 2, 2006" -}} +

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