diff --git a/src/freedombone-mesh-blog b/src/freedombone-mesh-blog index eb337827..54bf23d6 100755 --- a/src/freedombone-mesh-blog +++ b/src/freedombone-mesh-blog @@ -43,9 +43,9 @@ DEFAULT_BLOG_TITLE=$"Freedombone Blog" function remove_bad_blog_links { current_theme=$1 - if [ -f $BLOG_PATH/themes/$current_theme/static/css/style.css ]; then - sed -i '/googleapi/d' $BLOG_PATH/themes/$current_theme/static/css/style.css - fi + + cd $BLOG_PATH/themes/$current_theme + find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \; } function ipfs_publish { @@ -80,6 +80,11 @@ function regenerate_blog { sed -i "s|SITENAME=.*|SITENAME=u\"${BLOG_TITLE}\"|g" $BLOG_PATH/pelicanconf.py fi make html + + # remova any google fonts + cd $BLOG_PATH + find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \; + ipfs_publish }