Made addons optional

This commit is contained in:
Rehan Haider 2021-11-03 12:26:41 +05:30 committed by GitHub
parent 9c5c2b71e4
commit 698354eb08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,11 @@ pip install -r requirements.txt
echo 'Building site 👷 ' echo 'Building site 👷 '
pelican -D ${PELICAN_CONTENT_FOLDER:=content} -o ${PELICAN_OUTPUT_FOLDER:=output} -s ${PELICAN_CONFIG_FILE:=publishconf.py} pelican -D ${PELICAN_CONTENT_FOLDER:=content} -o ${PELICAN_OUTPUT_FOLDER:=output} -s ${PELICAN_CONFIG_FILE:=publishconf.py}
echo 'Running add-ons ' if [ -f addons.py ]; then
python addons.py echo 'Running add-ons '
python addons.py
else
echo 'No add-ons configured'
fi
echo 'Build complete 🎉🎉 🕺💃 ' echo 'Build complete 🎉🎉 🕺💃 '