From 6a3a369b3ef57c4ef68d87a2fca14fac1017b996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 1 May 2014 18:37:27 +0200 Subject: [PATCH] Add options to remove sharing links --- README.md | 7 ++++++- theme/templates/includes/book/header.html | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 55edcc96c..255f699ba 100644 --- a/README.md +++ b/README.md @@ -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 c25440766..1195fb297 100644 --- a/theme/templates/includes/book/header.html +++ b/theme/templates/includes/book/header.html @@ -12,9 +12,15 @@ + {% if options.links.sharing.google !== false %} + {% endif %} + {% if options.links.sharing.facebook !== false %} + {% endif %} + {% if options.links.sharing.twitter !== false %} + {% endif %} {% if githubId %}