diff --git a/.gitignore b/.gitignore index 70ff338..23adcbf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -output/ +output/* venv/ __pycache__/ diff --git a/.gitmodules b/.gitmodules index d532f74..2c09c92 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/content/images/capybara.jpg b/content/images/capybara.jpg new file mode 100644 index 0000000..6804267 Binary files /dev/null and b/content/images/capybara.jpg differ diff --git a/content/theme-test.md b/content/theme-test.md index 58074fc..31d40b9 100644 --- a/content/theme-test.md +++ b/content/theme-test.md @@ -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 diff --git a/update.sh b/update.sh index 43d7587..723f2bd 100755 --- a/update.sh +++ b/update.sh @@ -1,13 +1,25 @@ -#!/usr/bin/env bash +#!/bin/sh WEBSERVER='aquaria' -[[ ! ${VIRTUAL_ENV} ]] && NO_VENV=1 && source ./venv/bin/activate +build() { + [[ ! ${VIRTUAL_ENV} ]] && NO_VENV=1 && source ./venv/bin/activate + pelican + [[ ${NO_VENV} ]] && deactivate +} -# Build -pelican +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 -# And upload -scp -r output/* ${WEBSERVER}:~/web/ -[[ ${NO_VENV} ]] && deactivate