From d0deda9b496f582374f71bf25dd97b8410387a21 Mon Sep 17 00:00:00 2001 From: frosty Date: Fri, 22 Aug 2025 08:54:40 -0400 Subject: initial commit --- .../orca/layouts/_default/_markup/render-heading.html | 6 ++++++ themes/orca/layouts/_default/baseof.html | 19 +++++++++++++++++++ themes/orca/layouts/_default/blog.html | 8 ++++++++ themes/orca/layouts/_default/home.html | 3 +++ themes/orca/layouts/_default/music.html | 7 +++++++ themes/orca/layouts/_default/single.html | 7 +++++++ themes/orca/layouts/_shortcodes/all-posts.html | 4 ++++ themes/orca/layouts/_shortcodes/latest-posts.html | 5 +++++ themes/orca/layouts/partials/header.html | 14 ++++++++++++++ themes/orca/layouts/partials/post-item.html | 11 +++++++++++ 10 files changed, 84 insertions(+) create mode 100644 themes/orca/layouts/_default/_markup/render-heading.html create mode 100644 themes/orca/layouts/_default/baseof.html create mode 100644 themes/orca/layouts/_default/blog.html create mode 100644 themes/orca/layouts/_default/home.html create mode 100644 themes/orca/layouts/_default/music.html create mode 100644 themes/orca/layouts/_default/single.html create mode 100644 themes/orca/layouts/_shortcodes/all-posts.html create mode 100644 themes/orca/layouts/_shortcodes/latest-posts.html create mode 100644 themes/orca/layouts/partials/header.html create mode 100644 themes/orca/layouts/partials/post-item.html (limited to 'themes/orca/layouts') diff --git a/themes/orca/layouts/_default/_markup/render-heading.html b/themes/orca/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..d8a820e --- /dev/null +++ b/themes/orca/layouts/_default/_markup/render-heading.html @@ -0,0 +1,6 @@ + +{{ .Text | safeHTML }} +{{ if le .Level 3 }} + # +{{ end }} + diff --git a/themes/orca/layouts/_default/baseof.html b/themes/orca/layouts/_default/baseof.html new file mode 100644 index 0000000..034b6a1 --- /dev/null +++ b/themes/orca/layouts/_default/baseof.html @@ -0,0 +1,19 @@ + + + + + + {{ if not .IsHome }}{{ .Title | title }} - {{ end }}{{ .Site.Title }} + {{ $stylesheet := resources.Get "style.css" | minify | fingerprint }} + + + + + {{ partial "header.html" . }} +
+{{ block "main" . }} + {{ .Content }} +{{ end }} +
+ + diff --git a/themes/orca/layouts/_default/blog.html b/themes/orca/layouts/_default/blog.html new file mode 100644 index 0000000..0f73423 --- /dev/null +++ b/themes/orca/layouts/_default/blog.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ .TableOfContents }} + {{ .Content }} + {{ with .Lastmod }} +

Last modified {{ .Format "January 2nd, 2006" }}.

+ {{ end }} +{{ end }} diff --git a/themes/orca/layouts/_default/home.html b/themes/orca/layouts/_default/home.html new file mode 100644 index 0000000..e0e8308 --- /dev/null +++ b/themes/orca/layouts/_default/home.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/themes/orca/layouts/_default/music.html b/themes/orca/layouts/_default/music.html new file mode 100644 index 0000000..a59ecb7 --- /dev/null +++ b/themes/orca/layouts/_default/music.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} + {{ with .Lastmod }} +

Last modified {{ .Format "January 2nd, 2006" }}.

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

{{ .Title }}

+ {{ .Content }} + {{ with .Lastmod }} +

Last modified {{ .Format "January 2nd, 2006" }}.

+ {{ end }} +{{ end }} diff --git a/themes/orca/layouts/_shortcodes/all-posts.html b/themes/orca/layouts/_shortcodes/all-posts.html new file mode 100644 index 0000000..dab993a --- /dev/null +++ b/themes/orca/layouts/_shortcodes/all-posts.html @@ -0,0 +1,4 @@ +{{ $pages := where site.RegularPages "Type" "eq" (.Get "type") }} +{{ range $pages }} + {{ partial "post-item" . }} +{{ end }} diff --git a/themes/orca/layouts/_shortcodes/latest-posts.html b/themes/orca/layouts/_shortcodes/latest-posts.html new file mode 100644 index 0000000..44ff9d4 --- /dev/null +++ b/themes/orca/layouts/_shortcodes/latest-posts.html @@ -0,0 +1,5 @@ +{{ $limit := .Get "limit" }} +{{ $pages := first $limit (where site.RegularPages "Type" "in" site.Params.mainSections) }} +{{ range $pages }} + {{ partial "post-item" . }} +{{ end }} diff --git a/themes/orca/layouts/partials/header.html b/themes/orca/layouts/partials/header.html new file mode 100644 index 0000000..77d2a39 --- /dev/null +++ b/themes/orca/layouts/partials/header.html @@ -0,0 +1,14 @@ +
+ + +
diff --git a/themes/orca/layouts/partials/post-item.html b/themes/orca/layouts/partials/post-item.html new file mode 100644 index 0000000..183dd28 --- /dev/null +++ b/themes/orca/layouts/partials/post-item.html @@ -0,0 +1,11 @@ +
+ {{ .Type }} + {{ .Title }} +
+ {{ .Date.Format "January 2nd, 2006" }} +
+
+ + {{ range $i, $t := .Params.tags }}{{ if $i }}, {{ end }}{{ $t }}{{ end }} + +
-- cgit v1.2.3