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 }}
+ 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 @@ -