From 16f52b7bef745097f7076dde76715db378b54343 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 19 Mar 2025 14:56:26 +0000 Subject: first commit --- layouts/404.html | 6 ++++++ layouts/_default/baseof.html | 38 +++++++++++++++++++++++++++++++++ layouts/_default/list.html | 44 +++++++++++++++++++++++++++++++++++++++ layouts/_default/single.html | 17 +++++++++++++++ layouts/index.html | 3 +++ layouts/notes/list.html | 12 +++++++++++ layouts/partials/custom_body.html | 3 +++ layouts/partials/custom_head.html | 3 +++ layouts/partials/favicon.html | 2 ++ layouts/partials/footer.html | 1 + layouts/partials/header.html | 7 +++++++ layouts/partials/nav.html | 9 ++++++++ layouts/partials/seo_tags.html | 22 ++++++++++++++++++++ layouts/projects/list.html | 40 +++++++++++++++++++++++++++++++++++ layouts/robots.txt | 2 ++ layouts/snippets/list.html | 40 +++++++++++++++++++++++++++++++++++ 16 files changed, 249 insertions(+) create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/notes/list.html create mode 100644 layouts/partials/custom_body.html create mode 100644 layouts/partials/custom_head.html create mode 100644 layouts/partials/favicon.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/nav.html create mode 100644 layouts/partials/seo_tags.html create mode 100644 layouts/projects/list.html create mode 100644 layouts/robots.txt create mode 100644 layouts/snippets/list.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..c6b3dfd --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,6 @@ +{{ define "title" }}404{{ end }} + +{{ define "main" }} +

404

+

ʕノ•ᴥ•ʔノ ︵ ┻━┻

+{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..56818d7 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,38 @@ + + + + + + + {{- partial "favicon.html" . -}} + + {{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title + }}{{- end }} + + + {{- partial "seo_tags.html" . -}} + + + + {{ with .OutputFormats.Get "rss" -}} {{ printf ` + + ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{- + partial "custom_head.html" . -}} + + + + + + + +
{{- partial "header.html" . -}}
+
{{- block "main" . }}{{- end }}
+ + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..49da071 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,44 @@ +{{ define "main" }} + + {{ if .Data.Singular }} +

Filtering for "{{ .Title }}"

+ + Remove filter + + {{ end }} + + +
+ {{ $currentSection := .Section }} + {{ range $tag, $taxonomy := .Site.Taxonomies.tags }} + {{ $count:= 0 }} + {{ range $taxonomy.Pages }} + {{ if eq .Section $currentSection }} + {{ $count = add $count 1 }} + {{ end }} + {{ end }} + {{ if gt $count 0 }} + #{{ $taxonomy.Page.Title }}  + {{ end }} + {{ end }} +
+
+
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..5d0d520 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} {{ if eq .Type "blog" }}{{ if not .Params.menu }} +

{{ .Title }}

+

+ + + +

+{{ end }}{{ end }} + {{ .Content }} +

+ {{ range (.GetTerms "tags") }} + #{{ lower .LinkTitle }} + {{ end }} +

+{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/layouts/notes/list.html b/layouts/notes/list.html new file mode 100644 index 0000000..b34d8b4 --- /dev/null +++ b/layouts/notes/list.html @@ -0,0 +1,12 @@ +{{ define "main" }} + + {{ range $course, $taxonomy := site.Taxonomies.course }} +

{{ $course | title }}

+ + {{ end }} +
+{{ end }} diff --git a/layouts/partials/custom_body.html b/layouts/partials/custom_body.html new file mode 100644 index 0000000..951fb15 --- /dev/null +++ b/layouts/partials/custom_body.html @@ -0,0 +1,3 @@ + diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html new file mode 100644 index 0000000..4c53c40 --- /dev/null +++ b/layouts/partials/custom_head.html @@ -0,0 +1,3 @@ + diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..ccf1a5d --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1,2 @@ +{{ with .Site.Params.favicon }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..861b2cc --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1 @@ +

Find me here: git

diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..12fe8b2 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,7 @@ +
+ avatar + +

{{ .Site.Title }}

+
+ +
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..be5539c --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,9 @@ +{{ with .Site.GetPage "/blog" }} +blog +{{ end }} +{{ with .Site.GetPage "/snippets" }} +snippets +{{ end }} +{{ with .Site.GetPage "/projects" }} +projects +{{ end }} \ No newline at end of file diff --git a/layouts/partials/seo_tags.html b/layouts/partials/seo_tags.html new file mode 100644 index 0000000..7cea9a1 --- /dev/null +++ b/layouts/partials/seo_tags.html @@ -0,0 +1,22 @@ + + + + + + +{{ template "_internal/opengraph.html" . }} + + +{{ template "_internal/twitter_cards.html" . }} + + +{{ template "_internal/schema.html" . }} diff --git a/layouts/projects/list.html b/layouts/projects/list.html new file mode 100644 index 0000000..1f9fc51 --- /dev/null +++ b/layouts/projects/list.html @@ -0,0 +1,40 @@ +{{ define "main" }} + + {{ if .Data.Singular }} +

Filtering for "{{ .Title }}"

+ + Remove filter + + {{ end }} + + +
+ {{ $currentSection := .Section }} + {{ range $tag, $taxonomy := .Site.Taxonomies.tags }} + {{ $count:= 0 }} + {{ range $taxonomy.Pages }} + {{ if eq .Section $currentSection }} + {{ $count = add $count 1 }} + {{ end }} + {{ end }} + {{ if gt $count 0 }} + #{{ $taxonomy.Page.Title }}  + {{ end }} + {{ end }} +
+
+
+{{ end }} diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..0326f5c --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,2 @@ +User-Agent: * +Sitemap: {{ "sitemap.xml" | absURL }} diff --git a/layouts/snippets/list.html b/layouts/snippets/list.html new file mode 100644 index 0000000..2dc6cd4 --- /dev/null +++ b/layouts/snippets/list.html @@ -0,0 +1,40 @@ +{{ define "main" }} + + {{ if .Data.Singular }} +

Filtering for "{{ .Title }}"

ijkdwnwjka + + Remove filter + + {{ end }} + + +
+ {{ $currentSection := .Section }} + {{ range $tag, $taxonomy := .Site.Taxonomies.tags }} + {{ $count:= 0 }} + {{ range $taxonomy.Pages }} + {{ if eq .Section $currentSection }} + {{ $count = add $count 1 }} + {{ end }} + {{ end }} + {{ if gt $count 0 }} + #{{ $taxonomy.Page.Title }}  + {{ end }} + {{ end }} +
+
+
+{{ end }} -- cgit v1.2.3