Use pelican config when building sites

This commit is contained in:
randogoth 2026-02-07 20:41:08 +02:00
parent f526cb5595
commit 08d393e195

View file

@ -22,7 +22,17 @@ let
runHook preBuild
cd ${workdir}
${copyPlugins}
${pythonEnv}/bin/pelican content -o "$out"
conf=""
if [ -f publishconf.py ]; then
conf="publishconf.py"
elif [ -f pelicanconf.py ]; then
conf="pelicanconf.py"
fi
if [ -n "$conf" ]; then
${pythonEnv}/bin/pelican content -o "$out" -s "$conf"
else
${pythonEnv}/bin/pelican content -o "$out"
fi
runHook postBuild
'';
installPhase = "true";