Changing blog themes
This commit is contained in:
parent
63ba1c993a
commit
93bbbaa3c4
|
@ -199,7 +199,7 @@ function change_theme {
|
||||||
|
|
||||||
CHOSEN_THEME=${THEMES[$CHOSEN_THEME_INDEX]}
|
CHOSEN_THEME=${THEMES[$CHOSEN_THEME_INDEX]}
|
||||||
if grep -q "THEME=" $BLOG_PATH/pelicanconf.py; then
|
if grep -q "THEME=" $BLOG_PATH/pelicanconf.py; then
|
||||||
sed -i "s|THEME=.*|THEME='themes/${CHOSEN_THEME}'|g"
|
sed -i "s|THEME=.*|THEME='themes/${CHOSEN_THEME}'|g" $BLOG_PATH/pelicanconf.py
|
||||||
else
|
else
|
||||||
echo "THEME='themes/${CHOSEN_THEME}'" >> $BLOG_PATH/pelicanconf.py
|
echo "THEME='themes/${CHOSEN_THEME}'" >> $BLOG_PATH/pelicanconf.py
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue