From 6d276d1e7941552d405a22eb1b7c644eb63b07fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 1 May 2014 18:53:49 +0200 Subject: [PATCH] Add option to remove home link --- README.md | 6 ++++++ theme/templates/includes/book/header.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 255f699ba..fb3b38863 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,15 @@ Here are the options that can be stored in this file: // Links in template (null: default, false: remove, string: new value) "links": { + // Link to home in the top-left corner + "home": null, + + // Links in top of sidebar "about": null, "issues": null, "edit": null, + + // Sharing links "sharing": { "google": null, "facebook": null, diff --git a/theme/templates/includes/book/header.html b/theme/templates/includes/book/header.html index 1195fb297..87c300f3f 100644 --- a/theme/templates/includes/book/header.html +++ b/theme/templates/includes/book/header.html @@ -1,7 +1,7 @@
- {% if githubId %} - + {% if options.links.home !== false and (options.links.home != null or githubId) %} + {% endif %}