From ac22ebb9b8a6eef3e9860c2e3f7e995b513c4491 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 31 Jul 2017 14:50:32 +0100 Subject: [PATCH] Remove links to feedly from ghost blog --- src/freedombone-app-ghost | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone-app-ghost b/src/freedombone-app-ghost index 7b575a9b..65a3f314 100755 --- a/src/freedombone-app-ghost +++ b/src/freedombone-app-ghost @@ -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' {} \;