Remove hugo, switch to astro

This commit is contained in:
Brad Treloar 2025-11-01 21:39:20 +10:30
parent 4e0ca77624
commit 5c724783f3
7 changed files with 4 additions and 23 deletions

View file

@ -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"

3
hugo/.gitignore vendored
View file

@ -1,3 +0,0 @@
# Build files
/public/
/resources/_gen/

View file

@ -1,5 +0,0 @@
+++
date = '{{ .Date }}'
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++

View file

@ -1 +0,0 @@
@import "plugins/scrollbars";

View file

@ -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 = '*'

@ -1 +0,0 @@
Subproject commit 645c868cec1396548456eac68205eabbd8ca9564

View file

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