Site update
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
output/
|
output/*
|
||||||
venv/
|
venv/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
+1
-1
@@ -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 |
@@ -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*
|
*Image of a Capybara*
|
||||||
|
|
||||||
# Links
|
# Links
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user