Browse Source

www: put minify into config instead

master
FollieHiyuki 2 months ago
parent
commit
eb901c1b08
Signed by: FollieHiyuki GPG Key ID: 813CF484F4993419
  1. 6
      deploy.sh
  2. 3
      www/config.yaml

6
deploy.sh

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -e
echo "Username on remote host: " | tr -d '\n'
read -r username
@ -19,7 +19,7 @@ if [ -f "./public/posts.xml" ]; then
fi
cd ..
# website
cd www && hugo --minify -v && cd .. || exit 1
cd www && hugo -v && cd ..
rsync -rvP --delete-after gemini/public/ ${username}@folliehiyuki.com:/srv/gemini/
rsync -rvP --delete-after www/public/ ${username}@folliehiyuki.com:/srv/site/
rsync -rvP --delete-after www/public/ ${username}@folliehiyuki.com:/srv/www/

3
www/config.yaml

@ -37,6 +37,9 @@ menu:
taxonomies:
tag: tags
minify:
minifyOutput: true
markup:
goldmark:
renderer:

Loading…
Cancel
Save