Skip to content

Commit

Permalink
Add support for sharing buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
trib0r3 committed Apr 20, 2020
1 parent 460fb41 commit 5798663
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/sharingbuttons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!--
Placeholder for Sharebuttons, if you want to use it just create partials/sharingbuttons.html with generated one from https://sharingbuttons.io/ and add custom css in /static/style.css
-->
7 changes: 7 additions & 0 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ <h1 class="post-title">
</div>
</article>

{{- if .Site.Params.ShareButtons }}
<hr />
<div id="sharebuttons" class="thin">
{{ partial "sharingbuttons.html" . }}
</div>
{{- end }}

<hr />

<div class="post-info">
Expand Down

0 comments on commit 5798663

Please sign in to comment.