Skip to content

Commit ecd3244

Browse files
committed
feat: disable socail share
1 parent 5252f7b commit ecd3244

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ defaults:
313313
author_profile: false
314314
read_time: true
315315
comments: false
316-
share: true
316+
share: false
317317
related: false
318318
# _docs
319319
- scope:

_includes/social-share.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h4 class="page__share-title">
44
</h4>
55

66
<a
7-
href="https://twitter.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username | url_encode }}&{% endif %}text={{ page.title | url_encode }}"
7+
href="https://twitter.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username | url_encode }}&{% endif %}text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}"
88
class="btn btn--twitter"
99
onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
1010
title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} X"

0 commit comments

Comments
 (0)