Remove hugo, switch to astro
This commit is contained in:
parent
4e0ca77624
commit
5c724783f3
7 changed files with 4 additions and 23 deletions
|
|
@ -6,7 +6,7 @@ services:
|
||||||
container_name: server
|
container_name: server
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./hugo/public:/usr/share/nginx/html:ro
|
- ./astro/dist:/usr/share/nginx/html:ro
|
||||||
ports:
|
ports:
|
||||||
- "42069:80"
|
- "42069:80"
|
||||||
|
|
||||||
|
|
|
||||||
3
hugo/.gitignore
vendored
3
hugo/.gitignore
vendored
|
|
@ -1,3 +0,0 @@
|
||||||
# Build files
|
|
||||||
/public/
|
|
||||||
/resources/_gen/
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
+++
|
|
||||||
date = '{{ .Date }}'
|
|
||||||
draft = true
|
|
||||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
|
||||||
+++
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
@import "plugins/scrollbars";
|
|
||||||
|
|
@ -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
|
|
||||||
6
push.sh
6
push.sh
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd hugo
|
cd astro
|
||||||
hugo
|
npm run astro build
|
||||||
rsync -a public/* raspberrypi:/var/www/html/notes/hugo/public
|
rsync -a dist/* raspberrypi:/var/www/html/notes/astro/dist
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue