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/404.html | 0 themes/hugo-pt2021/layouts/_default/archive.html | 35 +++++++++++ themes/hugo-pt2021/layouts/_default/baseof.html | 10 +++ themes/hugo-pt2021/layouts/_default/blog.html | 43 +++++++++++++ themes/hugo-pt2021/layouts/_default/list.html | 0 themes/hugo-pt2021/layouts/_default/single.html | 0 themes/hugo-pt2021/layouts/articles/list.html | 31 ++++++++++ themes/hugo-pt2021/layouts/articles/single.html | 22 +++++++ themes/hugo-pt2021/layouts/index.html | 55 +++++++++++++++++ themes/hugo-pt2021/layouts/partials/footer.html | 0 themes/hugo-pt2021/layouts/partials/head.html | 12 ++++ themes/hugo-pt2021/layouts/partials/header.html | 78 ++++++++++++++++++++++++ themes/hugo-pt2021/layouts/posts/single.html | 16 +++++ 13 files changed, 302 insertions(+) create mode 100644 themes/hugo-pt2021/layouts/404.html create mode 100644 themes/hugo-pt2021/layouts/_default/archive.html create mode 100644 themes/hugo-pt2021/layouts/_default/baseof.html create mode 100644 themes/hugo-pt2021/layouts/_default/blog.html create mode 100644 themes/hugo-pt2021/layouts/_default/list.html create mode 100644 themes/hugo-pt2021/layouts/_default/single.html create mode 100644 themes/hugo-pt2021/layouts/articles/list.html create mode 100644 themes/hugo-pt2021/layouts/articles/single.html create mode 100644 themes/hugo-pt2021/layouts/index.html create mode 100644 themes/hugo-pt2021/layouts/partials/footer.html create mode 100644 themes/hugo-pt2021/layouts/partials/head.html create mode 100644 themes/hugo-pt2021/layouts/partials/header.html create mode 100644 themes/hugo-pt2021/layouts/posts/single.html (limited to 'themes/hugo-pt2021/layouts') diff --git a/themes/hugo-pt2021/layouts/404.html b/themes/hugo-pt2021/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hugo-pt2021/layouts/_default/archive.html b/themes/hugo-pt2021/layouts/_default/archive.html new file mode 100644 index 0000000..737fd94 --- /dev/null +++ b/themes/hugo-pt2021/layouts/_default/archive.html @@ -0,0 +1,35 @@ +{{- define "title" -}} + {{- .Title -}} +{{- end -}} + +{{- define "main" -}} +
+
+

+ {{- .Title -}} +

+ +
+ {{- $posts := where .Site.RegularPages "Section" "posts" -}} + {{- range $posts.GroupByDate "2006" -}} + {{- $head := index .Pages 0 -}} + {{- $year := $head.Date.Format "2006" -}} +

{{$year}}

+ + {{- end -}} +
+
+
+{{- end -}} diff --git a/themes/hugo-pt2021/layouts/_default/baseof.html b/themes/hugo-pt2021/layouts/_default/baseof.html new file mode 100644 index 0000000..ba3c4f8 --- /dev/null +++ b/themes/hugo-pt2021/layouts/_default/baseof.html @@ -0,0 +1,10 @@ + + + {{- partial "head.html" . -}} + + + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} + + diff --git a/themes/hugo-pt2021/layouts/_default/blog.html b/themes/hugo-pt2021/layouts/_default/blog.html new file mode 100644 index 0000000..af5affd --- /dev/null +++ b/themes/hugo-pt2021/layouts/_default/blog.html @@ -0,0 +1,43 @@ +{{- define "title" -}} + {{- .Title -}} +{{- end -}} + +{{- define "main" -}} +
+ {{- $posts := where .Site.RegularPages "Section" "posts" -}} + {{- range first 10 $posts.ByDate.Reverse -}} + {{- $date := .Date.Format "January 2, 2006" -}} + +
+

+ {{- .Title -}} +

+ +

+ {{- $date -}} + + + Link + +

+ +
+ {{- .Content -}} +
+
+ {{- end -}} + + + Archived Posts... + +
+{{- end -}} diff --git a/themes/hugo-pt2021/layouts/_default/list.html b/themes/hugo-pt2021/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hugo-pt2021/layouts/_default/single.html b/themes/hugo-pt2021/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 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 -}} 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 -}} + + +
+ + + + diff --git a/themes/hugo-pt2021/layouts/partials/footer.html b/themes/hugo-pt2021/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hugo-pt2021/layouts/partials/head.html b/themes/hugo-pt2021/layouts/partials/head.html new file mode 100644 index 0000000..409f6ee --- /dev/null +++ b/themes/hugo-pt2021/layouts/partials/head.html @@ -0,0 +1,12 @@ + + + + {{- block "title" . -}} + {{- .Page.Title -}} + {{- end -}} + + + {{- $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true) -}} + {{- $style := resources.Get "bulma-0.9.3/bulma.sass" | resources.ToCSS $options | resources.Fingerprint -}} + + diff --git a/themes/hugo-pt2021/layouts/partials/header.html b/themes/hugo-pt2021/layouts/partials/header.html new file mode 100644 index 0000000..a1d1246 --- /dev/null +++ b/themes/hugo-pt2021/layouts/partials/header.html @@ -0,0 +1,78 @@ + diff --git a/themes/hugo-pt2021/layouts/posts/single.html b/themes/hugo-pt2021/layouts/posts/single.html new file mode 100644 index 0000000..4c0002f --- /dev/null +++ b/themes/hugo-pt2021/layouts/posts/single.html @@ -0,0 +1,16 @@ +{{- define "title" -}} + {{.Title}} +{{- end -}} + +{{- define "main" -}} +
+
+

{{.Title}}

+

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

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