From 6758a1a26de82a6dc3661db880513cba75f01110 Mon Sep 17 00:00:00 2001 From: leiyu3 Date: Thu, 17 Jul 2025 11:47:55 -0400 Subject: init commit --- layouts/_default/baseof.html | 138 +++++++++++++++++++++++++++++++++++++++++++ layouts/_default/home.html | 71 ++++++++++++++++++++++ layouts/_default/single.html | 74 +++++++++++++++++++++++ 3 files changed, 283 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/home.html create mode 100644 layouts/_default/single.html (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..d8fafb6 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,138 @@ + + + + + {{ partial "head.html" . }} + + + {{ $theme := "auto"}} + + {{ with .Param "theme" }} + {{ $theme = .}} + {{ end }} + + + +
+
+

+ {{ .Site.Title }} +

+
+
+ +
+ + {{ block "main" . }}{{ end }} +
+
+ + + + + + +{{ if .HasShortcode "chords" }} + +{{ end }} + + + \ No newline at end of file diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..17f4249 --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,71 @@ +{{ define "main" }} + + +
+ {{ .Content }} + + {{ $tagsPage := eq .Title "Tags"}} + +

What do you want to sing?

+
+
+ + +
+
+ + + +
+{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..38cf763 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,74 @@ +{{ define "main" }} + +{{/* Breadcrumbs */}} + +
+ +
+ + {{/* Title and Summary */}} + +

{{ .Title }}

+ {{ if .Param "author" }} +

By: {{ .Param "author" }}

+ {{ end }} + +
+
+ +
+ +
+ + +
+
+ +
+ + {{ if .Param "showTags" }} + + {{ $taxonomy := "tags" }} + {{ with .Param $taxonomy }} + +
+ {{ range $index, $tag := . }} + {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} + + #{{ .LinkTitle }} + + {{ end }} + {{ end }} +
+ + {{ end }} + {{ end }} + + {{/* Page content */}} + +
+ {{ .Content }} +
+ + {{/* Back to top */}} + +
+ +{{ end }} \ No newline at end of file -- cgit v1.2.3