Skip to content

Commit

Permalink
Include Reddit in share options of posts (daattali#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
l33d4n authored and kishore-raj committed Jan 24, 2022
1 parent 8e8d3a4 commit c2de9c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed bug where special characters in the title led to broken share tags (#744)
- Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775)
- Added support for Cloudflare Analytics (#797)
- Added Reddit in share options of posts (#815)

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

Expand Down
8 changes: 8 additions & 0 deletions _includes/social-share.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
</a>
{% endif %}

{% if site.share-links-active.reddit %}
<a href="https://www.reddit.com/submit?url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-reddit" title="Share on Reddit">
<span class="fab fa-fw fa-reddit" aria-hidden="true"></span>
<span class="sr-only">Reddit</span>
</a>
{% endif %}

</section>

{% endif %}

0 comments on commit c2de9c5

Please sign in to comment.