summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-06 00:36:41 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-06 00:36:44 -0700
commita34dc458c9a78802c24497ef2ccf1e2d83ac0276 (patch)
treef7876a98a6dc899b3c6598e351671d55fa9949b5
parenteeb715d5d6ab94242a9c3dcd7cf834256b6f9219 (diff)
downloadgitbook-a34dc458c9a78802c24497ef2ccf1e2d83ac0276.zip
gitbook-a34dc458c9a78802c24497ef2ccf1e2d83ac0276.tar.gz
gitbook-a34dc458c9a78802c24497ef2ccf1e2d83ac0276.tar.bz2
Fix footer link when no chapters is ready yet
-rw-r--r--theme/templates/includes/book/footer.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/theme/templates/includes/book/footer.html b/theme/templates/includes/book/footer.html
index 1112b14..65c08de 100644
--- a/theme/templates/includes/book/footer.html
+++ b/theme/templates/includes/book/footer.html
@@ -1,15 +1,17 @@
<div class="page-footer">
- {% if _input == "README.md" %}
- <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation-link">Start</a>
- {% else %}
- {% if progress.current.next %}
- {% if progress.current.next.path %}
- <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation-link next">Next</a>
+ {% if progress.current.next %}
+ {% if progress.current.next.path %}
+ <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation-link next">
+ {% if _input == "README.md" %}
+ Start
{% else %}
- <div class="navigation-link coming-soon">Coming soon</div>
+ Next
{% endif %}
+ </a>
{% else %}
- <div class="navigation-link finished">Finished!</div>
+ <div class="navigation-link coming-soon">Coming soon</div>
{% endif %}
+ {% else %}
+ <div class="navigation-link finished">Finished!</div>
{% endif %}
</div> \ No newline at end of file