Skip to content

Commit

Permalink
Remove AddThis by default.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 24, 2014
1 parent 5170ea0 commit 4bdf636
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,7 @@ New in master
Features
--------

* AddThis is no longer added by default to users’ sites
* added ``-e``, ``--edit`` parameter to ``new_post`` and ``new_page`` to open
$EDITOR after creation (Issue #1294)
* added ``scanned`` signal (after posts are scanned) (via Issue #1291)
Expand Down
3 changes: 2 additions & 1 deletion nikola/conf.py.in
Expand Up @@ -514,7 +514,8 @@ COMMENT_SYSTEM_ID = ${COMMENT_SYSTEM_ID}
# MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite']

# Social buttons. This is sample code for AddThis (which was the default for a
# long time). Insert anything you want here, or even make it empty.
# long time). Insert anything you want here, or even make it empty (which is
# the default right now)
# (translatable)
# SOCIAL_BUTTONS_CODE = """
# <!-- Social buttons -->
Expand Down
17 changes: 1 addition & 16 deletions nikola/nikola.py
Expand Up @@ -301,7 +301,7 @@ def __init__(self, **config):
'SHOW_SOURCELINK': True,
'SHOW_UNTRANSLATED_POSTS': True,
'SLUG_TAG_PATH': True,
'SOCIAL_BUTTONS_CODE': SOCIAL_BUTTONS_CODE,
'SOCIAL_BUTTONS_CODE': '',
'SITE_URL': 'http://getnikola.com/',
'STORY_INDEX': False,
'STRIP_INDEXES': False,
Expand Down Expand Up @@ -1496,18 +1496,3 @@ def workaround_empty_LC_ALL_posix():
"tr_tr": "Turkish",
"zh_cn": "Chinese_China", # Chinese (Simplified)
}


SOCIAL_BUTTONS_CODE = """
<!-- Social buttons -->
<div id="addthisbox" class="addthis_toolbox addthis_peekaboo_style addthis_default_style addthis_label_style addthis_32x32_style">
<a class="addthis_button_more">Share</a>
<ul><li><a class="addthis_button_facebook"></a>
<li><a class="addthis_button_google_plusone_share"></a>
<li><a class="addthis_button_linkedin"></a>
<li><a class="addthis_button_twitter"></a>
</ul>
</div>
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f7088a56bb93798"></script>
<!-- End of social buttons -->
"""

0 comments on commit 4bdf636

Please sign in to comment.