Switch default blog

This commit is contained in:
Bob Mottram 2016-09-11 19:31:47 +01:00
parent 9a20e25da6
commit e605a7e495
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ function create_pelican_conf {
echo '' >> $STATIC_BLOG_FILE
echo 'DEFAULT_PAGINATION=False' >> $STATIC_BLOG_FILE
echo 'RELATIVE_URLS=True' >> $STATIC_BLOG_FILE
echo "THEME='themes/Just-Read'" >> $STATIC_BLOG_FILE
echo "THEME='themes/nice-blog'" >> $STATIC_BLOG_FILE
}
function create_pelican_makefile {

View File

@ -792,9 +792,9 @@ function setup_ipfs {
if [ -d /home/$MY_USERNAME/CreateBlog/content ]; then
shred -zu /home/$MY_USERNAME/CreateBlog/content/*
if grep -q "THEME=" /home/$MY_USERNAME/CreateBlog/pelicanconf.py; then
sed -i "s|THEME=.*|THEME='themes/Just-Read'|g" /home/$MY_USERNAME/CreateBlog/pelicanconf.py
sed -i "s|THEME=.*|THEME='themes/nice-blog'|g" /home/$MY_USERNAME/CreateBlog/pelicanconf.py
else
echo "THEME='themes/Just-Read'" >> /home/$MY_USERNAME/CreateBlog/pelicanconf.py
echo "THEME='themes/nice-blog'" >> /home/$MY_USERNAME/CreateBlog/pelicanconf.py
fi
fi

View File

@ -186,7 +186,7 @@ function change_theme {
is_selected='on'
fi
else
if [[ "$a" == 'Just-Read' ]]; then
if [[ "$a" == 'nice-blog' ]]; then
is_selected='on'
fi
fi