diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-04 10:45:36 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-04 10:45:36 -0700 |
commit | e0d96b316390660557c1eac72314cdd659ba58e0 (patch) | |
tree | 631a24d35b4b0c81ffefc51686525cbd7f26feed /templates/includes | |
parent | f656390783922952cc1f6fe8b0a5d0dc902fa92e (diff) | |
download | gitbook-e0d96b316390660557c1eac72314cdd659ba58e0.zip gitbook-e0d96b316390660557c1eac72314cdd659ba58e0.tar.gz gitbook-e0d96b316390660557c1eac72314cdd659ba58e0.tar.bz2 |
Fix links in templates
Diffstat (limited to 'templates/includes')
-rw-r--r-- | templates/includes/book/footer.html | 4 | ||||
-rw-r--r-- | templates/includes/book/progress.html | 2 | ||||
-rw-r--r-- | templates/includes/book/summary.html | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/templates/includes/book/footer.html b/templates/includes/book/footer.html index 48f4bf9..1112b14 100644 --- a/templates/includes/book/footer.html +++ b/templates/includes/book/footer.html @@ -1,10 +1,10 @@ <div class="page-footer"> {% if _input == "README.md" %} - <a href="{{ basePath }}/{{ progress.current.next.path }}" class="navigation-link">Start</a> + <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 }}" class="navigation-link next">Next</a> + <a href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" class="navigation-link next">Next</a> {% else %} <div class="navigation-link coming-soon">Coming soon</div> {% endif %} diff --git a/templates/includes/book/progress.html b/templates/includes/book/progress.html index d0e3193..176c95f 100644 --- a/templates/includes/book/progress.html +++ b/templates/includes/book/progress.html @@ -4,7 +4,7 @@ </div> <div class="chapters"> {% for p in progress.chapters %} - <a href="{{ basePath }}/{{ p.path }}" title="{{ p.title }}" class="chapter {% if p.done %}done{% endif %} {% if p.level.length == 1 %}new-chapter{% endif %}" data-progress="{{ p.level }}" style="left: {{ p.percent }}%;"></a> + <a href="{{ basePath }}/{{ p.path|mdLink }}" title="{{ p.title }}" class="chapter {% if p.done %}done{% endif %} {% if p.level.length == 1 %}new-chapter{% endif %}" data-progress="{{ p.level }}" style="left: {{ p.percent }}%;"></a> {% endfor %} </div> </div>
\ No newline at end of file diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html index d74fb18..996ff3d 100644 --- a/templates/includes/book/summary.html +++ b/templates/includes/book/summary.html @@ -16,7 +16,7 @@ {% for item in summary.chapters %} <li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}"> {% if item.path %} - <a href="{{ basePath }}/{{ item.path }}"> + <a href="{{ basePath }}/{{ item.path|mdLink }}"> <i class="fa fa-check"></i> <b>{{ item.level }})</b> {{ item.title }} </a> {% else %} @@ -27,7 +27,7 @@ {% for article in item.articles %} <li {% if article._path == _input %}class="active"{% endif %} data-level="{{ article.level }}"> {% if article.path %} - <a href="{{ basePath }}/{{ article.path }}"> + <a href="{{ basePath }}/{{ article.path|mdLink }}"> <i class="fa fa-check"></i> <b>{{ article.level }})</b> {{ article.title }} </a> {% else %} |