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/.gitkeep | 0 themes/simple/LICENSE | 20 --- themes/simple/archetypes/default.md | 2 - 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 ---------- themes/simple/openring/openring.html | 20 --- themes/simple/static/css/.gitkeep | 0 themes/simple/static/css/tailwind.css | 166 ------------------ themes/simple/static/js/.gitkeep | 0 themes/simple/theme.toml | 16 -- 26 files changed, 982 deletions(-) delete mode 100755 themes/.gitkeep delete mode 100644 themes/simple/LICENSE delete mode 100644 themes/simple/archetypes/default.md 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 delete mode 100644 themes/simple/openring/openring.html delete mode 100755 themes/simple/static/css/.gitkeep delete mode 100644 themes/simple/static/css/tailwind.css delete mode 100755 themes/simple/static/js/.gitkeep delete mode 100644 themes/simple/theme.toml (limited to 'themes') diff --git a/themes/.gitkeep b/themes/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/themes/simple/LICENSE b/themes/simple/LICENSE deleted file mode 100644 index 90c27d7..0000000 --- a/themes/simple/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Mitja Felicijan - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/simple/archetypes/default.md b/themes/simple/archetypes/default.md deleted file mode 100644 index ac36e06..0000000 --- a/themes/simple/archetypes/default.md +++ /dev/null @@ -1,2 +0,0 @@ -+++ -+++ 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 }} diff --git a/themes/simple/openring/openring.html b/themes/simple/openring/openring.html deleted file mode 100644 index 2ed2a86..0000000 --- a/themes/simple/openring/openring.html +++ /dev/null @@ -1,20 +0,0 @@ -
-

Articles from blogs I follow around the net

- -
- {{ range .Articles }} - - {{ end }} -
- -

- Generated with openring. -

-
diff --git a/themes/simple/static/css/.gitkeep b/themes/simple/static/css/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/themes/simple/static/css/tailwind.css b/themes/simple/static/css/tailwind.css deleted file mode 100644 index 9de02d7..0000000 --- a/themes/simple/static/css/tailwind.css +++ /dev/null @@ -1,166 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -* { cursor: url(/general/9front-cursor.png), auto; } - -/* Container */ -.container-blog { - max-width: 740px; -} - -/* User text selection */ -::selection { - @apply bg-yellow-200 text-black; -} - -::-moz-selection { - @apply bg-yellow-200 text-black; -} - -/* Helpers */ - -a:hover { - color: blue; -} - -.blue { - color: blue; -} - -/* Headings */ -article.single h2 { - @apply text-2xl font-bold mb-8 mt-8 leading-tight; -} - -article.single.note h2 { - @apply text-2xl font-bold mb-1 mt-8 leading-tight; -} - -article.single h3 { - @apply text-xl font-bold mb-4 mt-8 leading-tight; -} - -article.single h4 { - @apply text-lg font-bold mb-4 mt-8 leading-tight; -} - -/* Paragraph */ -article.single p { - @apply mb-5; -} - -/* Links */ -article.single a { - @apply underline-offset-2 underline; -} - -/* Blockquote */ -article.single .content blockquote { - background-image: url('/general/alert-light.svg'); - background-size: 30px 30px; - background-repeat: no-repeat; - background-position: 0 5px; - @apply pl-12 my-8; -} - -article.single .content blockquote p { - @apply mb-2; -} - -/* Media: Images, audio, video */ -article.single figure { - @apply my-8; -} - -article.single figure figcaption { - @apply text-center italic mt-1; -} - -article.single img { - @apply rounded w-full !bg-gray-50; - - image-rendering: crisp-edges; - image-rendering: -webkit-optimize-contrast; -} - -article.single video { - @apply rounded w-full !bg-gray-50; -} - -article.single audio { - @apply w-full mb-6; -} - -/* Code */ -article.single code { - @apply bg-yellow-200 rounded px-2 py-1 text-xs font-medium; -} - -article.single.note code { - @apply bg-gray-100 rounded px-2 py-1 text-xs font-medium; -} - -article.single pre { - @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto; -} - -article.single pre code, -article.single.note pre code { - background: unset; - padding: unset; - @apply leading-relaxed; -} - -/* Tables */ -article.single table { - @apply w-full border border-black border-collapse mb-4; -} - -article.single table tr, -article.single table td, -article.single table th { - @apply px-4 py-2 border text-left; -} - -/* Unordered list */ -article.single .content ul { - @apply list-disc pl-6 md:pl-10 mb-6; -} - -/* Ordered list */ -article.single .content ol { - @apply list-decimal pl-8 md:pl-10 mb-6; -} - -/* Table of contents */ -article.single #TableOfContents { - @apply mb-10 ml-4 leading-relaxed; -} -article.single #TableOfContents ul { - @apply list-decimal pl-4 md:pl-6; -} - -/* Lists */ -article.single .content ul ul { - margin-bottom: auto; -} - -/* Katex */ -article.single .katex-display { - @apply my-10; -} - -/* Lazy loading of iframes */ -article.single .ll-iframe { - @apply bg-gray-100 rounded; -} - -article.single .ll-iframe::before { - @apply h-full flex border-2 border-gray-300 rounded justify-center items-center font-medium text-sm cursor-pointer animate-pulse; - content: 'Click here to load resource…'; -} - -article.single .ll-iframe.empty::before { - content: none; -} diff --git a/themes/simple/static/js/.gitkeep b/themes/simple/static/js/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/themes/simple/theme.toml b/themes/simple/theme.toml deleted file mode 100644 index bf6fd7f..0000000 --- a/themes/simple/theme.toml +++ /dev/null @@ -1,16 +0,0 @@ -# theme.toml template for a Hugo theme -# See https://github.com/gohugoio/hugoThemes#themetoml for an example - -name = "Simple" -license = "MIT" -licenselink = "https://github.com/mitjafelicijan/hugo-simple/blob/master/LICENSE" -description = "Simlistic theme" -homepage = "http://mitjafelicijan.com/" -tags = [] -features = [] -min_version = "0.41.0" - -[author] - name = "Mitja Felicijan" - homepage = "https://mitjafelicijan.com" - -- cgit v1.2.3