Ver código fonte

Remove links to feedly from ghost blog

Bob Mottram 7 anos atrás
pai
commit
ac22ebb9b8
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8
    0
      src/freedombone-app-ghost

+ 8
- 0
src/freedombone-app-ghost Ver arquivo

@@ -70,12 +70,20 @@ function ghost_replace_jquery {
70 70
     find ./ -type f -exec sed -i -e 's|http://code.jquery.com|$curr_domain|g' {} \;
71 71
 }
72 72
 
73
+function ghost_rss_button {
74
+    # remove feedly -aaargh!
75
+    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
76
+    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
77
+}
78
+
73 79
 function ghost_remove_offsite_links {
74 80
     curr_domain="$GHOST_DOMAIN_NAME"
75 81
     if [[ "$ONION_ONLY" != 'no' ]]; then
76 82
         curr_domain="$GHOST_ONION_HOSTNAME"
77 83
     fi
78 84
 
85
+    ghost_rss_button
86
+
79 87
     # remove google font links
80 88
     cd /var/www/$GHOST_DOMAIN_NAME/htdocs/current
81 89
     find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/$curr_domain/g' {} \;