Remove bad css from selected blog

This commit is contained in:
Bob Mottram 2017-12-09 14:34:22 +00:00
parent db3cc4f5af
commit d61d410746
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ function change_theme {
CHOSEN_THEME_INDEX=$((CHOSEN_THEME_INDEX - 1))
CHOSEN_THEME=${THEMES[$CHOSEN_THEME_INDEX]}
remove_bad_blog_links $CHOSEN_THEME
if grep -q "THEME=" $BLOG_PATH/pelicanconf.py; then
sed -i "s|THEME=.*|THEME='themes/${CHOSEN_THEME}'|g" $BLOG_PATH/pelicanconf.py
else