Merge branch 'stretch' of https://github.com/bashrc/freedombone
This commit is contained in:
commit
70295790a0
|
@ -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