Use pelican config when building sites
This commit is contained in:
parent
f526cb5595
commit
08d393e195
1 changed files with 11 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue