Switch default blog
This commit is contained in:
parent
9a20e25da6
commit
e605a7e495
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue