Site update

This commit is contained in:
2022-09-23 17:40:35 +02:00
parent 270d07ffd3
commit 9ab234d9b1
5 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
output/
output/*
venv/
__pycache__/
+1 -1
View File
@@ -1,3 +1,3 @@
[submodule "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
![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*
# Links
+19 -7
View File
@@ -1,13 +1,25 @@
#!/usr/bin/env bash
#!/bin/sh
WEBSERVER='aquaria'
build() {
[[ ! ${VIRTUAL_ENV} ]] && NO_VENV=1 && source ./venv/bin/activate
# Build
pelican
# And upload
scp -r output/* ${WEBSERVER}:~/web/
[[ ${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