Site update

This commit is contained in:
hmk
2022-09-23 17:40:35 +02:00
parent a8f15bf201
commit d9f3cf9757
5 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
output/ output/*
venv/ venv/
__pycache__/ __pycache__/
+1 -1
View File
@@ -1,3 +1,3 @@
[submodule "themes/latex"] [submodule "themes/latex"]
path = themes/latex path = themes/latex
url = git@ja-bfn-git01.haemka.lan:hmk/pelican-latex.git url = https://git.haemka.in/hmk/pelican-latex.git
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

+1 -1
View File
@@ -101,7 +101,7 @@ At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergr
# Images # Images
![Image of a Capybara](https://upload.wikimedia.org/wikipedia/commons/8/85/Capybara_portrait.jpg) ![Image of a Capybara](./images/capybara.jpg)
*Image of a Capybara* *Image of a Capybara*
# Links # Links
+19 -7
View File
@@ -1,13 +1,25 @@
#!/usr/bin/env bash #!/bin/sh
WEBSERVER='aquaria' WEBSERVER='aquaria'
build() {
[[ ! ${VIRTUAL_ENV} ]] && NO_VENV=1 && source ./venv/bin/activate [[ ! ${VIRTUAL_ENV} ]] && NO_VENV=1 && source ./venv/bin/activate
# Build
pelican pelican
# And upload
scp -r output/* ${WEBSERVER}:~/web/
[[ ${NO_VENV} ]] && deactivate [[ ${NO_VENV} ]] && deactivate
}
upload() {
rsync -avz --delete output/* ${WEBSERVER}:~/web/
}
build
while getopts u param
do
case "$param" in
u) upload ;;
*) echo "Not implemented: $1" >&2 && exit 1 ;;
esac
done