From 8c0dc905d942987eefa73e51ee332df97010bd8d Mon Sep 17 00:00:00 2001 From: Johannes Kresner Date: Sun, 17 Aug 2025 22:09:53 +0200 Subject: [PATCH] feat: updates --- .gitea/workflows/build-and-push.yml | 3 +- .gitignore | 4 +- assets/css/input.css | 13 + hugo.toml | 10 +- layouts/_default/baseof.html | 32 +- layouts/_default/list.html | 24 +- layouts/_default/single.html | 16 +- layouts/_partials/header.html | 20 +- layouts/index.html | 22 + package.json | 16 + pnpm-lock.yaml | 664 ++++++++++++++++++++++++++++ static/css/app.css | 2 + static/css/latte-chroma-style.css | 256 ----------- static/css/mocha-chroma-style.css | 256 ----------- static/css/theme.css | 173 -------- static/theme.js | 84 ++-- tailwind.config.js | 25 ++ tailwind.config.mjs | 25 ++ 18 files changed, 869 insertions(+), 776 deletions(-) create mode 100644 assets/css/input.css create mode 100644 layouts/index.html create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 static/css/app.css delete mode 100644 static/css/latte-chroma-style.css delete mode 100644 static/css/mocha-chroma-style.css delete mode 100644 static/css/theme.css create mode 100644 tailwind.config.js create mode 100644 tailwind.config.mjs diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index ccee351..ef1406a 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -68,5 +68,4 @@ jobs: done else echo "No registry credentials provided; skipping push." - fi - + fi \ No newline at end of file diff --git a/.gitignore b/.gitignore index 48749f8..3430e85 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.lock -public/ \ No newline at end of file +public/ + +node_modules/ diff --git a/assets/css/input.css b/assets/css/input.css new file mode 100644 index 0000000..32d877f --- /dev/null +++ b/assets/css/input.css @@ -0,0 +1,13 @@ +@import "tailwindcss"; +@import "@catppuccin/tailwindcss/mocha.css"; + +@source "./layouts/**/*.{html,htm}"; +@source "./content/**/*.{md,html}"; +@source "./static/**/*.{html,js}"; + +@layer base { + html { @apply antialiased; } + body { @apply bg-ctp-base text-ctp-text font-sans; } +} + + diff --git a/hugo.toml b/hugo.toml index 82da1b2..bd7ab7a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -8,14 +8,10 @@ title = 'My personal blog' [menu] [[menu.main]] - name = 'Home' - url = '/' - weight = 1 - [[menu.main]] - name = 'Posts' + name = 'All posts' url = '/posts/' - weight = 2 + weight = 1 [[menu.main]] name = 'About' url = '/about/' - weight = 3 \ No newline at end of file + weight = 2 \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 442ed1d..f45190e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,15 +4,37 @@ {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }} - - - + + + + + - + {{ partial "header.html" . }} -
+
{{ block "main" . }}{{ end }}
+
+
+ © {{ now.Year }} {{ .Site.Title }} | Powered by Hugo +
+
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 02c9fa4..bcf7ad6 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,18 +1,16 @@ {{ define "main" }}
-

{{ .Title }}

- {{ range .Pages.ByDate.Reverse }} -
-

{{ .Title }}

- - {{ with .Summary }}

{{ . }}

{{ end }} -
- {{ end }} +

{{ .Title }}

+
{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7da47b7..d609120 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,15 +1,23 @@ {{ define "main" }} -
-
-

{{ .Title }}

+
+
+

{{ .Title }}

{{ .Content }}
+
{{ end }} diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index 61147ab..685b62b 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -1,18 +1,12 @@ -