summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-05-01 18:37:27 +0200
committerSamy Pessé <samypesse@gmail.com>2014-05-01 18:37:30 +0200
commit6a3a369b3ef57c4ef68d87a2fca14fac1017b996 (patch)
tree49231c0f68b2558afe3bd00c067aa6fb0dbd083c /theme
parent5d8afa21358f1204f36d46fee93bb314ef4d21ca (diff)
downloadgitbook-6a3a369b3ef57c4ef68d87a2fca14fac1017b996.zip
gitbook-6a3a369b3ef57c4ef68d87a2fca14fac1017b996.tar.gz
gitbook-6a3a369b3ef57c4ef68d87a2fca14fac1017b996.tar.bz2
Add options to remove sharing links
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/includes/book/header.html6
1 files changed, 6 insertions, 0 deletions
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>