From 24897b4ec55af3f21ce690783b9ca62c51f2ee67 Mon Sep 17 00:00:00 2001 From: frosty Date: Mon, 19 May 2025 08:48:52 -0400 Subject: initial commit --- themes/polaris/layouts/_default/baseof.html | 23 +++++++++++++++++++++++ themes/polaris/layouts/_default/home.html | 4 ++++ themes/polaris/layouts/_default/now.html | 8 ++++++++ themes/polaris/layouts/_default/single.html | 5 +++++ themes/polaris/layouts/partials/footer.html | 0 themes/polaris/layouts/partials/nav.html | 16 ++++++++++++++++ themes/polaris/layouts/partials/posts.html | 18 ++++++++++++++++++ 7 files changed, 74 insertions(+) create mode 100644 themes/polaris/layouts/_default/baseof.html create mode 100644 themes/polaris/layouts/_default/home.html create mode 100644 themes/polaris/layouts/_default/now.html create mode 100644 themes/polaris/layouts/_default/single.html create mode 100644 themes/polaris/layouts/partials/footer.html create mode 100644 themes/polaris/layouts/partials/nav.html create mode 100644 themes/polaris/layouts/partials/posts.html (limited to 'themes/polaris/layouts') diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html new file mode 100644 index 0000000..b6ccdac --- /dev/null +++ b/themes/polaris/layouts/_default/baseof.html @@ -0,0 +1,23 @@ + + + + + {{ .Site.Title }} + + {{ $style := resources.Get "css/style.css" | minify | fingerprint }} + + + + +
+ {{ block "main" . }} + {{ .Content }} + {{ end }} +
+ + + diff --git a/themes/polaris/layouts/_default/home.html b/themes/polaris/layouts/_default/home.html new file mode 100644 index 0000000..6e46985 --- /dev/null +++ b/themes/polaris/layouts/_default/home.html @@ -0,0 +1,4 @@ +{{ define "main" }} + {{ .Content }} + {{ partial "posts.html" }} +{{ end }} diff --git a/themes/polaris/layouts/_default/now.html b/themes/polaris/layouts/_default/now.html new file mode 100644 index 0000000..bb77eaf --- /dev/null +++ b/themes/polaris/layouts/_default/now.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} +

+ Last updated {{ .Date | time.Format "Jan 02 2006" }}. + What the heck is a “now page”? +

+{{ end }} diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html new file mode 100644 index 0000000..d87f112 --- /dev/null +++ b/themes/polaris/layouts/_default/single.html @@ -0,0 +1,5 @@ +{{ define "main" }} +

{{ .Title }}

+

Written {{ .Date | time.Format "Jan 02 2006" }}.

+ {{ .Content }} +{{ end }} diff --git a/themes/polaris/layouts/partials/footer.html b/themes/polaris/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/polaris/layouts/partials/nav.html b/themes/polaris/layouts/partials/nav.html new file mode 100644 index 0000000..56d2fa9 --- /dev/null +++ b/themes/polaris/layouts/partials/nav.html @@ -0,0 +1,16 @@ + + diff --git a/themes/polaris/layouts/partials/posts.html b/themes/polaris/layouts/partials/posts.html new file mode 100644 index 0000000..7fd87de --- /dev/null +++ b/themes/polaris/layouts/partials/posts.html @@ -0,0 +1,18 @@ +{{ $pages := where site.RegularPages "Section" "blog" }} +{{ $pagesLen := (len $pages) }} + +{{ if eq $pagesLen 0 }} +

It sure is quiet around here.

+{{ end }} + +{{ range $index, $element := $pages }} +
+
+

{{ .Title }}

+
+

{{ .Date | time.Format "Jan 02 2006" }}

+
+ {{ if ne (add $index 1) $pagesLen }} +
+ {{ end }} +{{ end }} -- cgit v1.2.3-70-g09d2