Add option to remove home link

This commit is contained in:
Samy Pessé
2014-05-01 18:53:49 +02:00
parent 6a3a369b3e
commit 6d276d1e79
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -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,
+2 -2
View File
@@ -1,7 +1,7 @@
<div class="book-header">
<!-- Actions Left -->
{% if githubId %}
<a href="{{ githubHost }}{{ githubId }}" target="_blank" class="btn pull-left"><i class="fa fa-github-alt"></i></a>
{% if options.links.home !== false and (options.links.home != null or githubId) %}
<a href="{{ options.links.home|default(githubHost+githubId) }}" target="_blank" class="btn pull-left"><i class="fa fa-bookmark-o"></i></a>
{% endif %}
<a href="#" class="btn pull-left toggle-summary"><i class="fa fa-align-justify"></i></a>
<a href="#" class="btn pull-left toggle-search"><i class="fa fa-search"></i></a>