Removal of google fonts when regenerating mesh blog
This commit is contained in:
parent
6384897ecc
commit
363938c900
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue