mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Try out gzip_static
I hope this works
This commit is contained in:
parent
33985223fa
commit
09d7d6c3fc
2 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ image: alpine/edge
|
|||
packages:
|
||||
- rsync
|
||||
- hugo
|
||||
- zopfli
|
||||
sources:
|
||||
- https://git.sr.ht/~seirdy/seirdy.one
|
||||
secrets:
|
||||
|
|
|
@ -22,6 +22,9 @@ case "$1" in
|
|||
;;
|
||||
esac
|
||||
|
||||
find public -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' \
|
||||
| grep -v gemini \
|
||||
| xargs -L1 zopfli
|
||||
rsync -avzP --exclude 'gemini' --exclude '*.gmi' --exclude 'misc/' --exclude 'music.txt' --exclude '.well-known' public/ "$www_prefix/" --delete
|
||||
rsync -avzP --exclude '*.html' --exclude 'misc/' --exclude 'music.txt' public/gemini/ public/about public/posts "$gemini_prefix/" --delete
|
||||
rsync -avzP public/posts/gemini.xml "$gemini_prefix/feed.xml"
|
||||
|
|
Loading…
Reference in a new issue