|
@@ -49,6 +49,15 @@ pelican_variables=(MY_USERNAME
|
49
|
49
|
PELICAN_DOMAIN_NAME
|
50
|
50
|
PELICAN_BLOG_CODE)
|
51
|
51
|
|
|
52
|
+function pelican_remove_bad_blog_links {
|
|
53
|
+ find ./ -type f -name *.css -exec sed -i -e '/googleapi/d' {} \;
|
|
54
|
+ find ./ -type f -name *.scss -exec sed -i -e '/googleapi/d' {} \;
|
|
55
|
+ find ./ -type f -name *.html -exec sed -i -e '/googleapi/d' {} \;
|
|
56
|
+ find ./ -type f -name *.css -exec sed -i -e '/bootstrapcdn/d' {} \;
|
|
57
|
+ find ./ -type f -name *.scss -exec sed -i -e '/bootstrapcdn/d' {} \;
|
|
58
|
+ find ./ -type f -name *.html -exec sed -i -e '/bootstrapcdn/d' {} \;
|
|
59
|
+}
|
|
60
|
+
|
52
|
61
|
function logging_on_pelican {
|
53
|
62
|
echo -n ''
|
54
|
63
|
}
|
|
@@ -742,13 +751,7 @@ function pelican_themes {
|
742
|
751
|
git clone https://github.com/jarv/water-iris
|
743
|
752
|
git clone https://github.com/kplaube/yapeme
|
744
|
753
|
|
745
|
|
- # remove any dubious css
|
746
|
|
- for d in */ ; do
|
747
|
|
- THEME_NAME=$(echo "$d" | awk -F '/' '{print $1}')
|
748
|
|
- if [ -d $d/static/css/style.css ]; then
|
749
|
|
- sed -i '/googleapi/d' $d/static/css/style.css
|
750
|
|
- fi
|
751
|
|
- done
|
|
754
|
+ pelican_remove_bad_blog_links
|
752
|
755
|
}
|
753
|
756
|
|
754
|
757
|
function mesh_install_pelican {
|