From cd6644ea4ddc78597934ab0ef5ba50e3c3daa927 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 8 Jul 2023 23:25:41 +0200 Subject: Moved to a simpler SSG --- themes/simple/layouts/404.html | 0 .../layouts/_default/_markup/render-image.html | 11 -- themes/simple/layouts/_default/baseof.html | 14 -- themes/simple/layouts/_default/index.json | 5 - themes/simple/layouts/_default/index.xml | 27 --- themes/simple/layouts/_default/list.html | 48 ------ themes/simple/layouts/_default/notes.html | 101 ----------- themes/simple/layouts/_default/single.html | 61 ------- themes/simple/layouts/partials/comments.html | 9 - themes/simple/layouts/partials/footer.html | 62 ------- themes/simple/layouts/partials/head.html | 21 --- themes/simple/layouts/partials/navigation.html | 29 ---- themes/simple/layouts/partials/read-more.html | 16 -- themes/simple/layouts/partials/search.html | 191 --------------------- themes/simple/layouts/partials/side-projects.html | 40 ----- themes/simple/layouts/section/section.json | 5 - themes/simple/layouts/section/section.xml | 27 --- themes/simple/layouts/tags/list.html | 91 ---------- 18 files changed, 758 deletions(-) delete mode 100644 themes/simple/layouts/404.html delete mode 100644 themes/simple/layouts/_default/_markup/render-image.html delete mode 100644 themes/simple/layouts/_default/baseof.html delete mode 100644 themes/simple/layouts/_default/index.json delete mode 100644 themes/simple/layouts/_default/index.xml delete mode 100644 themes/simple/layouts/_default/list.html delete mode 100644 themes/simple/layouts/_default/notes.html delete mode 100644 themes/simple/layouts/_default/single.html delete mode 100644 themes/simple/layouts/partials/comments.html delete mode 100644 themes/simple/layouts/partials/footer.html delete mode 100644 themes/simple/layouts/partials/head.html delete mode 100644 themes/simple/layouts/partials/navigation.html delete mode 100644 themes/simple/layouts/partials/read-more.html delete mode 100644 themes/simple/layouts/partials/search.html delete mode 100644 themes/simple/layouts/partials/side-projects.html delete mode 100644 themes/simple/layouts/section/section.json delete mode 100644 themes/simple/layouts/section/section.xml delete mode 100644 themes/simple/layouts/tags/list.html (limited to 'themes/simple/layouts') diff --git a/themes/simple/layouts/404.html b/themes/simple/layouts/404.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/simple/layouts/_default/_markup/render-image.html b/themes/simple/layouts/_default/_markup/render-image.html deleted file mode 100644 index d3df1fd..0000000 --- a/themes/simple/layouts/_default/_markup/render-image.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ $cachebuster := delimit (shuffle (split (md5 "6fab11c6669976d759d2992eff1dd5be") "" )) "" }} - -
- - {{ .Text }} - -
{{ .Text }}
-
diff --git a/themes/simple/layouts/_default/baseof.html b/themes/simple/layouts/_default/baseof.html deleted file mode 100644 index 79c7684..0000000 --- a/themes/simple/layouts/_default/baseof.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -{{ partial "head.html" . }} - - - {{ partial "navigation.html" . }} -
- {{ block "main" . }}{{ end }} -
- {{ partial "footer.html" . }} - - - \ No newline at end of file diff --git a/themes/simple/layouts/_default/index.json b/themes/simple/layouts/_default/index.json deleted file mode 100644 index b8f3786..0000000 --- a/themes/simple/layouts/_default/index.json +++ /dev/null @@ -1,5 +0,0 @@ -{{- $.Scratch.Add "index" slice -}} -{{- range .Site.RegularPages -}} -{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "type" .Type "permalink" .RelPermalink "summary" .Summary) -}} -{{- end -}} -{{- $.Scratch.Get "index" | jsonify -}} diff --git a/themes/simple/layouts/_default/index.xml b/themes/simple/layouts/_default/index.xml deleted file mode 100644 index 1f29133..0000000 --- a/themes/simple/layouts/_default/index.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {{ .Site.Author.name }}'s Blog - {{ .Permalink }} - {{ .Site.Params.description }} - en-us - - {{ range (where .Site.RegularPages "Section" "posts") }} - - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - - {{ " - {{ " - - - {{end}} - - - - diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html deleted file mode 100644 index 6362b0f..0000000 --- a/themes/simple/layouts/_default/list.html +++ /dev/null @@ -1,48 +0,0 @@ -{{ define "main" }} -
- - - {{ partial "search.html" . }} - - - - -

For interesting notes and - small experiments I usually partake - in, check the Notes page.

-
- -

Blog posts

- - - - -
- - - {{ partial "side-projects.html" . }} - -
- - - {{ partial "openring.html" . }} - -
-{{ end }} diff --git a/themes/simple/layouts/_default/notes.html b/themes/simple/layouts/_default/notes.html deleted file mode 100644 index f624814..0000000 --- a/themes/simple/layouts/_default/notes.html +++ /dev/null @@ -1,101 +0,0 @@ -{{ define "main" }} -
- - - {{ partial "search.html" . }} - -
-

Notes, notes and notes

-

- Notes about things I learn, things I do, things I want to remember, - but never do. You can subscribe to this - RSS feed - which contains only the notes without the blog posts. -

-
- -
- - - - - - - - - - - - -
-{{ end }} diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html deleted file mode 100644 index 095ff25..0000000 --- a/themes/simple/layouts/_default/single.html +++ /dev/null @@ -1,61 +0,0 @@ -{{ define "main" }} -
- - - {{ partial "search.html" . }} - - -
-
-

{{ .Title }}

- - {{ if not (eq .Type "pages") }} - - {{ end }} -
- - {{ if not .Params.hidetoc }} -
- {{ if ge (len .TableOfContents) 100 }} -

Table of contents

-
{{ .TableOfContents }}
- {{ end }} -
- {{ end }} - -
- {{.Content}} -
-
- - {{ if not (eq .Type "pages") }} -
- {{ end }} - - - {{ if not (eq .Type "pages") }} -
- {{ partial "comments.html" . }} -
- {{ end }} - - {{ if not (eq .Type "pages") }} -
- {{ end }} - - - {{ if not (eq .Type "pages") }} - {{ partial "read-more.html" . }} - {{ end }} - - {{ if in .Type "posts" }} -
- {{ end }} - - - {{ if in .Type "posts" }} - {{ partial "openring.html" . }} - {{ end }} - -
-{{ end }} diff --git a/themes/simple/layouts/partials/comments.html b/themes/simple/layouts/partials/comments.html deleted file mode 100644 index 50c28ca..0000000 --- a/themes/simple/layouts/partials/comments.html +++ /dev/null @@ -1,9 +0,0 @@ -
-

Want to comment or have something to add?

- -

- You can write me an email at - m@mitjafelicijan.com or catch up with me - on Telegram. -

-
diff --git a/themes/simple/layouts/partials/footer.html b/themes/simple/layouts/partials/footer.html deleted file mode 100644 index 8367f21..0000000 --- a/themes/simple/layouts/partials/footer.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - -{{ if ne .IsHome true }} - - - - -{{ end }} - -{{ if ne .IsHome true }} - - -{{ end }} \ No newline at end of file diff --git a/themes/simple/layouts/partials/head.html b/themes/simple/layouts/partials/head.html deleted file mode 100644 index fc481fc..0000000 --- a/themes/simple/layouts/partials/head.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ $cachebuster := delimit (shuffle (split (md5 "6fab11c6669976d759d2992eff1dd5be") "" )) "" }} - - - - - - - - - - - - -{{ .Title }} - - - - - - - diff --git a/themes/simple/layouts/partials/navigation.html b/themes/simple/layouts/partials/navigation.html deleted file mode 100644 index 73ae0ce..0000000 --- a/themes/simple/layouts/partials/navigation.html +++ /dev/null @@ -1,29 +0,0 @@ -
-
- - - -
-
diff --git a/themes/simple/layouts/partials/read-more.html b/themes/simple/layouts/partials/read-more.html deleted file mode 100644 index 9de1554..0000000 --- a/themes/simple/layouts/partials/read-more.html +++ /dev/null @@ -1,16 +0,0 @@ -
-

Read more from this site

- -
diff --git a/themes/simple/layouts/partials/search.html b/themes/simple/layouts/partials/search.html deleted file mode 100644 index f157f03..0000000 --- a/themes/simple/layouts/partials/search.html +++ /dev/null @@ -1,191 +0,0 @@ -{{ $cachebuster := delimit (shuffle (split (md5 "6fab11c6669976d759d2992eff1dd5be") "" )) "" }} - - - - - diff --git a/themes/simple/layouts/partials/side-projects.html b/themes/simple/layouts/partials/side-projects.html deleted file mode 100644 index 462ff45..0000000 --- a/themes/simple/layouts/partials/side-projects.html +++ /dev/null @@ -1,40 +0,0 @@ -
-

Side projects I work/worked on

- - - -

* For more projects, check out - my Git - server. Most of the projects there are probably work in progress and - should be considered as such.

- -
diff --git a/themes/simple/layouts/section/section.json b/themes/simple/layouts/section/section.json deleted file mode 100644 index b8f3786..0000000 --- a/themes/simple/layouts/section/section.json +++ /dev/null @@ -1,5 +0,0 @@ -{{- $.Scratch.Add "index" slice -}} -{{- range .Site.RegularPages -}} -{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "type" .Type "permalink" .RelPermalink "summary" .Summary) -}} -{{- end -}} -{{- $.Scratch.Get "index" | jsonify -}} diff --git a/themes/simple/layouts/section/section.xml b/themes/simple/layouts/section/section.xml deleted file mode 100644 index 889cf08..0000000 --- a/themes/simple/layouts/section/section.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {{ .Site.Author.name }}'s Notes - {{ .Permalink }} - {{ .Site.Params.description }} - en-us - - {{ range (where .Site.RegularPages "Section" "notes") }} - - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - - {{ " - {{ " - - - {{end}} - - - - diff --git a/themes/simple/layouts/tags/list.html b/themes/simple/layouts/tags/list.html deleted file mode 100644 index bd3bd57..0000000 --- a/themes/simple/layouts/tags/list.html +++ /dev/null @@ -1,91 +0,0 @@ -{{ define "main" }} -
- - - {{ partial "search.html" . }} - -
-

- {{ .Title }} - // - notes - // - {{ len .Pages }} of them -

-

- Notes about things I learn, things I do, things I want to remember, - but never do. You can subscribe to this - RSS feed - which contains only the notes without the blog posts. -

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