From 5c724783f3075a0e642e0449411a23011292b057 Mon Sep 17 00:00:00 2001 From: Brad Treloar Date: Sat, 1 Nov 2025 21:39:20 +1030 Subject: [PATCH] Remove hugo, switch to astro --- docker-compose.yml | 2 +- hugo/.gitignore | 3 --- hugo/archetypes/default.md | 5 ----- hugo/assets/_custom.scss | 1 - hugo/hugo.toml | 9 --------- hugo/themes/hugo-book | 1 - push.sh | 6 +++--- 7 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 hugo/.gitignore delete mode 100644 hugo/archetypes/default.md delete mode 100644 hugo/assets/_custom.scss delete mode 100644 hugo/hugo.toml delete mode 160000 hugo/themes/hugo-book diff --git a/docker-compose.yml b/docker-compose.yml index cdcfcaf..778d703 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: container_name: server restart: always volumes: - - ./hugo/public:/usr/share/nginx/html:ro + - ./astro/dist:/usr/share/nginx/html:ro ports: - "42069:80" diff --git a/hugo/.gitignore b/hugo/.gitignore deleted file mode 100644 index 01ef8f4..0000000 --- a/hugo/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Build files -/public/ -/resources/_gen/ diff --git a/hugo/archetypes/default.md b/hugo/archetypes/default.md deleted file mode 100644 index 25b6752..0000000 --- a/hugo/archetypes/default.md +++ /dev/null @@ -1,5 +0,0 @@ -+++ -date = '{{ .Date }}' -draft = true -title = '{{ replace .File.ContentBaseName "-" " " | title }}' -+++ diff --git a/hugo/assets/_custom.scss b/hugo/assets/_custom.scss deleted file mode 100644 index e5ad4f0..0000000 --- a/hugo/assets/_custom.scss +++ /dev/null @@ -1 +0,0 @@ -@import "plugins/scrollbars"; diff --git a/hugo/hugo.toml b/hugo/hugo.toml deleted file mode 100644 index ea2cd82..0000000 --- a/hugo/hugo.toml +++ /dev/null @@ -1,9 +0,0 @@ -baseURL = 'https://example.org/' -languageCode = 'en-us' -title = 'My Notes' -theme = 'hugo-book' -contentDir = '../docs' -ignoreLogs = ['warning-goldmark-raw-html'] - -[params] - BookSection = '*' diff --git a/hugo/themes/hugo-book b/hugo/themes/hugo-book deleted file mode 160000 index 645c868..0000000 --- a/hugo/themes/hugo-book +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 645c868cec1396548456eac68205eabbd8ca9564 diff --git a/push.sh b/push.sh index 9a2f6a8..6cb6de7 100755 --- a/push.sh +++ b/push.sh @@ -1,5 +1,5 @@ #!/bin/bash -cd hugo -hugo -rsync -a public/* raspberrypi:/var/www/html/notes/hugo/public +cd astro +npm run astro build +rsync -a dist/* raspberrypi:/var/www/html/notes/astro/dist