Remove bad pelican theme links at install time
This commit is contained in:
parent
d32c6d9499
commit
d358c8af0e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue