Skip to content

Commit 99fdbbd

Browse files
authored
Include Reddit in share options of posts (daattali#815)
1 parent a531737 commit 99fdbbd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Fixed bug where special characters in the title led to broken share tags (#744)
1111
- Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775)
1212
- Added support for Cloudflare Analytics (#797)
13+
- Added Reddit in share options of posts (#815)
1314

1415
## v5.0.0 (2020-09-15)
1516

_includes/social-share.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@
4242
</a>
4343
{% endif %}
4444

45+
{% if site.share-links-active.reddit %}
46+
<a href="https://www.reddit.com/submit?url={{ page.url | absolute_url | url_encode }}"
47+
class="btn btn-social-icon btn-reddit" title="Share on Reddit">
48+
<span class="fab fa-fw fa-reddit" aria-hidden="true"></span>
49+
<span class="sr-only">Reddit</span>
50+
</a>
51+
{% endif %}
52+
4553
</section>
4654

4755
{% endif %}

0 commit comments

Comments
 (0)