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