Use pelicanconf when present

This commit is contained in:
randogoth 2026-02-07 21:06:59 +02:00
parent f5277d268c
commit b3416915fd

View file

@ -26,7 +26,11 @@ let
# Drop draft content before building (Pelican draft detection can be inconsistent). # Drop draft content before building (Pelican draft detection can be inconsistent).
grep -RIl '^status:[[:space:]]*draft' content | xargs -r rm -f grep -RIl '^status:[[:space:]]*draft' content | xargs -r rm -f
fi fi
${pythonEnv}/bin/pelican content -o "$out" if [ -f pelicanconf.py ]; then
${pythonEnv}/bin/pelican content -o "$out" -s pelicanconf.py
else
${pythonEnv}/bin/pelican content -o "$out"
fi
runHook postBuild runHook postBuild
''; '';
installPhase = "true"; installPhase = "true";