Remove bad pelican theme links at install time

This commit is contained in:
Bob Mottram 2017-12-31 10:44:21 +00:00
parent d32c6d9499
commit d358c8af0e
1 changed files with 10 additions and 7 deletions

View File

@ -49,6 +49,15 @@ pelican_variables=(MY_USERNAME
PELICAN_DOMAIN_NAME
PELICAN_BLOG_CODE)
function pelican_remove_bad_blog_links {
find ./ -type f -name *.css -exec sed -i -e '/googleapi/d' {} \;
find ./ -type f -name *.scss -exec sed -i -e '/googleapi/d' {} \;
find ./ -type f -name *.html -exec sed -i -e '/googleapi/d' {} \;
find ./ -type f -name *.css -exec sed -i -e '/bootstrapcdn/d' {} \;
find ./ -type f -name *.scss -exec sed -i -e '/bootstrapcdn/d' {} \;
find ./ -type f -name *.html -exec sed -i -e '/bootstrapcdn/d' {} \;
}
function logging_on_pelican {
echo -n ''
}
@ -742,13 +751,7 @@ function pelican_themes {
git clone https://github.com/jarv/water-iris
git clone https://github.com/kplaube/yapeme
# remove any dubious css
for d in */ ; do
THEME_NAME=$(echo "$d" | awk -F '/' '{print $1}')
if [ -d $d/static/css/style.css ]; then
sed -i '/googleapi/d' $d/static/css/style.css
fi
done
pelican_remove_bad_blog_links
}
function mesh_install_pelican {