Browse Source

Remove dubious pelican theme css at install time

Bob Mottram 7 years ago
parent
commit
4bb3d4b0b4
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/freedombone-app-pelican

+ 8
- 0
src/freedombone-app-pelican View File

@@ -741,6 +741,14 @@ function pelican_themes {
741 741
     git clone https://github.com/samael500/w3-personal-blog
742 742
     git clone https://github.com/jarv/water-iris
743 743
     git clone https://github.com/kplaube/yapeme
744
+
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
744 752
 }
745 753
 
746 754
 function mesh_install_pelican {