Use pelicanconf when present
This commit is contained in:
parent
f5277d268c
commit
b3416915fd
1 changed files with 5 additions and 1 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue