diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-08 18:50:07 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:46 -0700 |
commit | 78c68c7b9efd98139182c88580186d2456b1bec7 (patch) | |
tree | 3a68e5ca30987f0a9190b5140ff58e416e7dc829 /theme | |
parent | d914eae40a9730d76295750ac47ebed9fe4f7146 (diff) | |
download | gitbook-78c68c7b9efd98139182c88580186d2456b1bec7.zip gitbook-78c68c7b9efd98139182c88580186d2456b1bec7.tar.gz gitbook-78c68c7b9efd98139182c88580186d2456b1bec7.tar.bz2 |
Remove config for github urls
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/includes/book/exercise.html | 4 | ||||
-rw-r--r-- | theme/templates/includes/book/header.html | 4 | ||||
-rw-r--r-- | theme/templates/includes/book/quiz.html | 4 | ||||
-rw-r--r-- | theme/templates/includes/book/summary.html | 28 |
4 files changed, 20 insertions, 20 deletions
diff --git a/theme/templates/includes/book/exercise.html b/theme/templates/includes/book/exercise.html index faefbb7..cb1c4ed 100644 --- a/theme/templates/includes/book/exercise.html +++ b/theme/templates/includes/book/exercise.html @@ -23,7 +23,7 @@ <div class="btn-group btn-group-justified"> <a href="#" class="btn btn-default action-submit">Submit</a> <a href="#" class="btn btn-default action-solution">Solution</a> - {% if githubId %} - <a href="{{ githubHost }}{{ githubId }}/issues/new" target="_blank" class="btn btn-default">Have a Question?</a> + {% if options.links.issues %} + <a href="{{ options.links.issues }}" target="_blank" class="btn btn-default">Have a Question?</a> {% endif %} </div> diff --git a/theme/templates/includes/book/header.html b/theme/templates/includes/book/header.html index 9b36af8..43898f9 100644 --- a/theme/templates/includes/book/header.html +++ b/theme/templates/includes/book/header.html @@ -1,8 +1,8 @@ <div class="book-header"> <!-- Actions Left --> <a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></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 home-bookmark" aria-label="GitHub home"><i class="fa fa-bookmark-o"></i></a> + {% if options.links.home %} + <a href="{{ options.links.home }}" target="_blank" class="btn pull-left home-bookmark" aria-label="GitHub home"><i class="fa fa-bookmark-o"></i></a> {% endif %} <a href="#" class="btn pull-left toggle-search" aria-label="Toggle search"><i class="fa fa-search"></i></a> <span id="font-settings-wrapper"> diff --git a/theme/templates/includes/book/quiz.html b/theme/templates/includes/book/quiz.html index c315a16..3c10ffc 100644 --- a/theme/templates/includes/book/quiz.html +++ b/theme/templates/includes/book/quiz.html @@ -37,7 +37,7 @@ <div class="btn-group btn-group-justified"> <a href="#" class="btn btn-default action-submit">Submit</a> <a href="#" class="btn btn-default action-solution">Solution</a> - {% if githubId %} - <a href="{{ githubHost }}{{ githubId }}/issues/new" target="_blank" class="btn btn-default">Have a Question?</a> + {% if options.links.issues %} + <a href="{{ options.links.issues }}" target="_blank" class="btn btn-default">Have a Question?</a> {% endif %} </div> diff --git a/theme/templates/includes/book/summary.html b/theme/templates/includes/book/summary.html index 3eda4cb..b110c00 100644 --- a/theme/templates/includes/book/summary.html +++ b/theme/templates/includes/book/summary.html @@ -38,35 +38,35 @@ </div> <ul class="summary"> {% set _divider = false %} - {% if options.links.about !== false && (options.links.about || githubId) %} + {% if options.links.about %} {% set _divider = true %} <li> - <a href="{{ options.links.about|default(githubHost+githubAuthor) }}" target="blank" class="author-link">About the author</a> + <a href="{{ options.links.about }}" target="blank" class="author-link">About the author</a> </li> {% endif %} - {% if options.links.issues !== false && (options.links.issues || githubId) %} + {% if options.links.issues %} {% set _divider = true %} <li> - <a href="{{ options.links.issues|default(githubHost+githubId+"/issues") }}" target="blank" class="issues-link">Questions and Issues</a> + <a href="{{ options.links.issues }}" target="blank" class="issues-link">Questions and Issues</a> </li> {% endif %} - {% if options.links.contribute !== false && (options.links.contribute || githubId) %} + {% if options.links.contribute %} {% set _divider = true %} <li> - <a href="{{ options.links.contribute|default(githubHost+githubId+"/edit/master/"+_input) }}" target="blank" class="contribute-link">Edit and Contribute</a> + <a href="{{ options.links.contribute }}" target="blank" class="contribute-link">Contribute to this book</a> </li> {% endif %} - {% if options.links.custom %} - {% for link in options.links.custom %} - {% set _divider = true %} - <li> - <a href="{{ options.links.custom[loop.key] }}" target="blank" class="custom-link">{{ loop.key }}</a> - </li> - {% endfor %} - {% endif %} + {% if options.links.custom %} + {% for link in options.links.custom %} + {% set _divider = true %} + <li> + <a href="{{ options.links.custom[loop.key] }}" target="blank" class="custom-link">{{ loop.key }}</a> + </li> + {% endfor %} + {% endif %} {% if _divider %} <li class="divider"></li> |