Skip to content
Snippets Groups Projects
Commit 6a8ef2c3 authored by James Vasile's avatar James Vasile Committed by Tris Haines
Browse files

delete output dir when building

parent c2ee7e11
No related branches found
No related tags found
1 merge request!1Added code for byline to article template
...@@ -5,10 +5,10 @@ set -e ...@@ -5,10 +5,10 @@ set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd ${SCRIPT_DIR}/../site cd ${SCRIPT_DIR}/../site
if [ "$1" = pub ]; then if [ "$1" = pub ]; then
pelican -s publishconf.py content pelican -d -s publishconf.py content
echo Pub site generated and copied to site/output echo Pub site generated and copied to site/output
else else
pelican content pelican -d content
echo Dev site generated and copied to site/output echo Dev site generated and copied to site/output
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment