Remove links to feedly from ghost blog
This commit is contained in:
parent
9dd54f5c32
commit
ac22ebb9b8
|
@ -70,12 +70,20 @@ function ghost_replace_jquery {
|
|||
find ./ -type f -exec sed -i -e 's|http://code.jquery.com|$curr_domain|g' {} \;
|
||||
}
|
||||
|
||||
function ghost_rss_button {
|
||||
# remove feedly -aaargh!
|
||||
sed -i 's|http://cloud.feedly.com/#subscription/feed/{{@blog.url}}/rss/|{{@blog.url}}/rss/|g' /var/www/$GHOST_DOMAIN_NAME/htdocs/current/content/themes/casper/partials/site-nav.hbs
|
||||
sed -i 's|http://cloud.feedly.com/#subscription/feed/{{url absolute="true"}}/rss/|{{url absolute="true"}}rss/|g' /var/www/$GHOST_DOMAIN_NAME/htdocs/current/content/themes/casper/author.hbs
|
||||
}
|
||||
|
||||
function ghost_remove_offsite_links {
|
||||
curr_domain="$GHOST_DOMAIN_NAME"
|
||||
if [[ "$ONION_ONLY" != 'no' ]]; then
|
||||
curr_domain="$GHOST_ONION_HOSTNAME"
|
||||
fi
|
||||
|
||||
ghost_rss_button
|
||||
|
||||
# remove google font links
|
||||
cd /var/www/$GHOST_DOMAIN_NAME/htdocs/current
|
||||
find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/$curr_domain/g' {} \;
|
||||
|
|
Loading…
Reference in New Issue