diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-04-04 10:59:13 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-04-04 10:59:13 -0700 |
commit | d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a (patch) | |
tree | 060f11df6d7ccc24e222d35cf1ce2354f0fd6b02 /templates | |
parent | fe3de93e06d5cc6fd757ee68013e1ec77f708018 (diff) | |
parent | 5cae311edf62e5c86edd9083a8d927730710c2f9 (diff) | |
download | gitbook-d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a.zip gitbook-d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a.tar.gz gitbook-d475affd3bb1255d82ff810bc8ef5ac8ac2f6f3a.tar.bz2 |
Merge pull request #25 from GitbookIO/feature/generators
Feature/generators
Diffstat (limited to 'templates')
-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 | ||||
-rw-r--r-- | templates/layout.html | 4 |
4 files changed, 7 insertions, 7 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 %} diff --git a/templates/layout.html b/templates/layout.html index c0f52cb..47184b3 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -13,10 +13,10 @@ <meta name="generator" content="www.gitbook.io"> {% if progress.current.next and progress.current.next.path %} - <link rel="next" href="{{ basePath }}/{{ progress.current.next.path }}" /> + <link rel="next" href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" /> {% endif %} {% if progress.current.prev and progress.current.prev.path %} - <link rel="prev" href="{{ basePath }}/{{ progress.current.prev.path }}" /> + <link rel="prev" href="{{ basePath }}/{{ progress.current.prev.path|mdLink }}" /> {% endif %} <meta property="og:title" content="{% block title %} | {{ title }}{% endblock %}"> |