blog/build.sh

16 lines
272 B
Bash
Raw Permalink Normal View History

2021-11-08 21:09:17 +00:00
#! /usr/bin/env bash
2020-04-12 02:26:47 +00:00
2022-03-13 17:24:39 +00:00
SETTINGS='settings.py'
function main {
local file="$(realpath "${BASH_SOURCE[0]}")"
local root="$(dirname "${file}")"
cd "${root}"
pelican \
--settings "${SETTINGS}" \
2022-03-17 23:02:33 +00:00
"${@}" && \
ln --symbolic '../theme' 'out/fr'
2022-03-13 17:24:39 +00:00
}
main "${@}"