diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | theme/templates/includes/book/header.html | 6 |
2 files changed, 12 insertions, 1 deletions
@@ -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 + } } } ``` diff --git a/theme/templates/includes/book/header.html b/theme/templates/includes/book/header.html index c254407..1195fb2 100644 --- a/theme/templates/includes/book/header.html +++ b/theme/templates/includes/book/header.html @@ -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> |