From 4719cc03837490ed4bf1b9725d75a686e56e5a6a Mon Sep 17 00:00:00 2001 From: claw0ry Date: Wed, 11 Dec 2024 13:56:52 +0100 Subject: fresh start --- themes/plaintext/archetypes/default.md | 5 ++ themes/plaintext/layouts/_default/baseof.html | 36 +++++++++ themes/plaintext/layouts/_default/list.html | 8 ++ themes/plaintext/layouts/_default/single.html | 10 +++ themes/plaintext/layouts/index.html | 45 +++++++++++ themes/plaintext/layouts/partials/footer.html | 2 + themes/plaintext/layouts/partials/head.html | 9 +++ themes/plaintext/layouts/partials/header.html | 9 +++ themes/plaintext/layouts/posts/single.html | 33 ++++++++ themes/plaintext/layouts/shortcodes/rawhtml.html | 2 + themes/plaintext/static/android-chrome-192x192.png | Bin 0 -> 7565 bytes themes/plaintext/static/android-chrome-512x512.png | Bin 0 -> 22440 bytes themes/plaintext/static/apple-touch-icon.png | Bin 0 -> 6696 bytes themes/plaintext/static/favicon-16x16.png | Bin 0 -> 439 bytes themes/plaintext/static/favicon-32x32.png | Bin 0 -> 874 bytes themes/plaintext/static/favicon.ico | Bin 0 -> 15406 bytes themes/plaintext/static/style.css | 88 +++++++++++++++++++++ themes/plaintext/theme.toml | 31 ++++++++ 18 files changed, 278 insertions(+) create mode 100644 themes/plaintext/archetypes/default.md create mode 100644 themes/plaintext/layouts/_default/baseof.html create mode 100644 themes/plaintext/layouts/_default/list.html create mode 100644 themes/plaintext/layouts/_default/single.html create mode 100644 themes/plaintext/layouts/index.html create mode 100644 themes/plaintext/layouts/partials/footer.html create mode 100644 themes/plaintext/layouts/partials/head.html create mode 100644 themes/plaintext/layouts/partials/header.html create mode 100644 themes/plaintext/layouts/posts/single.html create mode 100644 themes/plaintext/layouts/shortcodes/rawhtml.html create mode 100644 themes/plaintext/static/android-chrome-192x192.png create mode 100644 themes/plaintext/static/android-chrome-512x512.png create mode 100644 themes/plaintext/static/apple-touch-icon.png create mode 100644 themes/plaintext/static/favicon-16x16.png create mode 100644 themes/plaintext/static/favicon-32x32.png create mode 100644 themes/plaintext/static/favicon.ico create mode 100644 themes/plaintext/static/style.css create mode 100644 themes/plaintext/theme.toml (limited to 'themes/plaintext') diff --git a/themes/plaintext/archetypes/default.md b/themes/plaintext/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/themes/plaintext/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/themes/plaintext/layouts/_default/baseof.html b/themes/plaintext/layouts/_default/baseof.html new file mode 100644 index 0000000..2f38a78 --- /dev/null +++ b/themes/plaintext/layouts/_default/baseof.html @@ -0,0 +1,36 @@ + + +{{ "" | safeHTML }} + + + + + {{ partial "head.html" . }} + + + +
+ {{ partial "header.html" . }} +
+ +
+
+ {{ block "main" . }}{{ end }} + +
+ +
+ {{ partial "footer.html" . }} +
+
+ + + diff --git a/themes/plaintext/layouts/_default/list.html b/themes/plaintext/layouts/_default/list.html new file mode 100644 index 0000000..50fc92d --- /dev/null +++ b/themes/plaintext/layouts/_default/list.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} + {{ range .Pages }} +

{{ .LinkTitle }}

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

{{ .Title }}

+ + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format ":date_long" }} + + + {{ .Content }} + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +{{ end }} diff --git a/themes/plaintext/layouts/index.html b/themes/plaintext/layouts/index.html new file mode 100644 index 0000000..da61394 --- /dev/null +++ b/themes/plaintext/layouts/index.html @@ -0,0 +1,45 @@ +{{ define "main" }} +

claw0ry.net

+ +
+

Hi, my name is Mads! *waves*

+ +

I'm a developer and Linux enthusiast from Norway. I mainly use this site as a personal reference, cause my brain + too smol. Maybe you'll find something interesting too.

+ + + +

+ Bluesky: claw0ry.net +

+
+ +
+ +
+ {{ $pages := where site.RegularPages "Type" "posts" }} + {{ $paginator := .Paginate $pages.ByDate.Reverse 5 }} + + {{ range $paginator.Pages }} + + +
+ + {{ end }} + + {{ template "_internal/pagination.html" (dict "page" . "format" "terse") }} + +
+
+{{ end }} diff --git a/themes/plaintext/layouts/partials/footer.html b/themes/plaintext/layouts/partials/footer.html new file mode 100644 index 0000000..ea1ae0b --- /dev/null +++ b/themes/plaintext/layouts/partials/footer.html @@ -0,0 +1,2 @@ +

Copyright © {{ now.Year }} - claw0ry.net / <webmaster@claw0ry.net>

diff --git a/themes/plaintext/layouts/partials/head.html b/themes/plaintext/layouts/partials/head.html new file mode 100644 index 0000000..1ba4902 --- /dev/null +++ b/themes/plaintext/layouts/partials/head.html @@ -0,0 +1,9 @@ + + +{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} + + + + + + diff --git a/themes/plaintext/layouts/partials/header.html b/themes/plaintext/layouts/partials/header.html new file mode 100644 index 0000000..b96bd36 --- /dev/null +++ b/themes/plaintext/layouts/partials/header.html @@ -0,0 +1,9 @@ + diff --git a/themes/plaintext/layouts/posts/single.html b/themes/plaintext/layouts/posts/single.html new file mode 100644 index 0000000..c4b5e80 --- /dev/null +++ b/themes/plaintext/layouts/posts/single.html @@ -0,0 +1,33 @@ +{{ define "main" }} + +
+

* {{ .Title }}

+ + +
+ + {{ if .Params.toc }} +
+

Table of Contents

+ {{ .TableOfContents }} +
+ +
+ {{ end }} + +
{{ .Content }}
+
+ +
+ +{{ with .GitInfo }} +

This page was last modified {{ .CommitDate.Format "15:04:05 02-01-2006"}}

+{{ end }} + + +{{ end }} diff --git a/themes/plaintext/layouts/shortcodes/rawhtml.html b/themes/plaintext/layouts/shortcodes/rawhtml.html new file mode 100644 index 0000000..b90bea2 --- /dev/null +++ b/themes/plaintext/layouts/shortcodes/rawhtml.html @@ -0,0 +1,2 @@ + +{{.Inner}} diff --git a/themes/plaintext/static/android-chrome-192x192.png b/themes/plaintext/static/android-chrome-192x192.png new file mode 100644 index 0000000..f3b10f4 Binary files /dev/null and b/themes/plaintext/static/android-chrome-192x192.png differ diff --git a/themes/plaintext/static/android-chrome-512x512.png b/themes/plaintext/static/android-chrome-512x512.png new file mode 100644 index 0000000..2225036 Binary files /dev/null and b/themes/plaintext/static/android-chrome-512x512.png differ diff --git a/themes/plaintext/static/apple-touch-icon.png b/themes/plaintext/static/apple-touch-icon.png new file mode 100644 index 0000000..6d403d3 Binary files /dev/null and b/themes/plaintext/static/apple-touch-icon.png differ diff --git a/themes/plaintext/static/favicon-16x16.png b/themes/plaintext/static/favicon-16x16.png new file mode 100644 index 0000000..25de952 Binary files /dev/null and b/themes/plaintext/static/favicon-16x16.png differ diff --git a/themes/plaintext/static/favicon-32x32.png b/themes/plaintext/static/favicon-32x32.png new file mode 100644 index 0000000..933a4f2 Binary files /dev/null and b/themes/plaintext/static/favicon-32x32.png differ diff --git a/themes/plaintext/static/favicon.ico b/themes/plaintext/static/favicon.ico new file mode 100644 index 0000000..dfe2de7 Binary files /dev/null and b/themes/plaintext/static/favicon.ico differ diff --git a/themes/plaintext/static/style.css b/themes/plaintext/static/style.css new file mode 100644 index 0000000..e4bdb08 --- /dev/null +++ b/themes/plaintext/static/style.css @@ -0,0 +1,88 @@ +* { + box-sizing: border-box; +} + +body { + /* font-family: Verdana, Geneva, Tahoma, sans-serif; */ + font-family: courier, monospace; +} + +header { + max-width: 600px; + margin: 0 auto; +} + +hr { + border-style: dashed; + margin: 40px 0; +} + +pre { + background: #f5f5f5; + overflow-x: auto; + padding: 10px; + font-size: 14px; +} + +p>code, +li>code { + font-size: 14px; + font-weight: bold; +} + +table, +table tr th, +table tr td { + border-collapse: collapse; +} + +table tr th { + padding: .2rem .5rem; + background-color: #f5f5f5; + border: 1px solid black; +} + +table tr td { + padding: .2rem .5rem; + border: 1px solid black; +} + +.content { + max-width: 600px; + margin: 0 auto 40px auto; +} + +.post-title a { + color: inherit; + text-decoration: none; +} + + +.article--body { + line-height: 1.5; +} + +.pagination { + display: flex; + justify-content: center; + gap: 1rem; +} + +.pagination .page-item { + display: inline-block; +} + +@media (prefers-color-scheme: dark) { + body { + background: #212121; + color: white; + } + + a { + color: #69f; + } + + a:visited { + color: #96f; + } +} diff --git a/themes/plaintext/theme.toml b/themes/plaintext/theme.toml new file mode 100644 index 0000000..3ba3164 --- /dev/null +++ b/themes/plaintext/theme.toml @@ -0,0 +1,31 @@ +name = 'Theme name' +license = 'MIT' +licenselink = 'https://github.com/owner/repo/LICENSE' +description = 'Theme description' + +# The home page of the theme, where the source can be found +homepage = 'https://github.com/owner/repo' + +# If you have a running demo of the theme +demosite = 'https://owner.github.io/repo' + +# Taxonomy terms +tags = ['blog', 'company'] +features = ['some', 'awesome', 'features'] + +# If the theme has multiple authors +authors = [ + {name = 'Name of author', homepage = 'Website of author'}, + {name = 'Name of author', homepage = 'Website of author'} +] + +# If the theme has a single author +[author] + name = 'Your name' + homepage = 'Your website' + +# If porting an existing theme +[original] + author = 'Name of original author' + homepage = 'Website of original author' + repo = 'https://github.com/owner/repo' -- cgit v1.2.3