Skip to content
Snippets Groups Projects
Commit ac22ebb9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove links to feedly from ghost blog

parent 9dd54f5c
No related branches found
No related tags found
No related merge requests found
......@@ -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' {} \;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment