|
@@ -43,9 +43,9 @@ DEFAULT_BLOG_TITLE=$"Freedombone Blog"
|
43
|
43
|
|
44
|
44
|
function remove_bad_blog_links {
|
45
|
45
|
current_theme=$1
|
46
|
|
- if [ -f $BLOG_PATH/themes/$current_theme/static/css/style.css ]; then
|
47
|
|
- sed -i '/googleapi/d' $BLOG_PATH/themes/$current_theme/static/css/style.css
|
48
|
|
- fi
|
|
46
|
+
|
|
47
|
+ cd $BLOG_PATH/themes/$current_theme
|
|
48
|
+ find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
|
49
|
49
|
}
|
50
|
50
|
|
51
|
51
|
function ipfs_publish {
|
|
@@ -80,6 +80,11 @@ function regenerate_blog {
|
80
|
80
|
sed -i "s|SITENAME=.*|SITENAME=u\"${BLOG_TITLE}\"|g" $BLOG_PATH/pelicanconf.py
|
81
|
81
|
fi
|
82
|
82
|
make html
|
|
83
|
+
|
|
84
|
+ # remova any google fonts
|
|
85
|
+ cd $BLOG_PATH
|
|
86
|
+ find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
|
|
87
|
+
|
83
|
88
|
ipfs_publish
|
84
|
89
|
}
|
85
|
90
|
|