Skip to content

Commit

Permalink
Add options to remove sharing links
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed May 1, 2014
1 parent 5d8afa2 commit 6a3a369
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ Here are the options that can be stored in this file:
"links": {
"about": null,
"issues": null,
"edit": null
"edit": null,
"sharing": {
"google": null,
"facebook": null,
"twitter": null
}
}
}
```
Expand Down
6 changes: 6 additions & 0 deletions theme/templates/includes/book/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
</span>

<!-- Actions Right -->
{% if options.links.sharing.google !== false %}
<a href="#" target="_blank" class="btn pull-right" data-sharing="google-plus"><i class="fa fa-google-plus"></i></a>
{% endif %}
{% if options.links.sharing.facebook !== false %}
<a href="#" target="_blank" class="btn pull-right" data-sharing="facebook"><i class="fa fa-facebook"></i></a>
{% endif %}
{% if options.links.sharing.twitter !== false %}
<a href="#" target="_blank" class="btn pull-right" data-sharing="twitter"><i class="fa fa-twitter"></i></a>
{% endif %}

{% if githubId %}
<a href="{{ githubHost }}{{ githubId }}/stargazers" target="_blank" class="btn pull-right count-star hidden-xs"><i class="fa fa-star-o"></i> Star (<span>-</span>)</a>
Expand Down

0 comments on commit 6a3a369

Please sign in to comment.