Removal of google fonts when regenerating mesh blog

This commit is contained in:
Bob Mottram 2017-12-30 20:05:40 +00:00
parent 6384897ecc
commit 363938c900
1 changed files with 8 additions and 3 deletions

View File

@ -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
}