This commit is contained in:
Marc Beninca 2022-03-13 19:55:23 +01:00
parent 14fc25100e
commit 8b442a0363
2 changed files with 2 additions and 6 deletions

View file

@ -5,14 +5,10 @@ SETTINGS='settings.py'
function main { function main {
local file="$(realpath "${BASH_SOURCE[0]}")" local file="$(realpath "${BASH_SOURCE[0]}")"
local root="$(dirname "${file}")" local root="$(dirname "${file}")"
local args=()
case "${1}" in
'') args+='--print-settings' ;;
esac
cd "${root}" cd "${root}"
pelican \ pelican \
--settings "${SETTINGS}" \ --settings "${SETTINGS}" \
"${args[@]}" "${@}"
} }
main "${@}" main "${@}"

View file

@ -16,7 +16,7 @@ OUTPUT_PATH = 'out'
OUTPUT_SOURCES = True OUTPUT_SOURCES = True
RELATIVE_URLS = True RELATIVE_URLS = True
LINKS = () LINKS = (
('Link #1', 'https://1'), ('Link #1', 'https://1'),
('Link #2', 'https://2'), ('Link #2', 'https://2'),
) )