diff --git a/src/freedombone-mesh-blog b/src/freedombone-mesh-blog index cf43076e..eb337827 100755 --- a/src/freedombone-mesh-blog +++ b/src/freedombone-mesh-blog @@ -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