summaryrefslogtreecommitdiffstats
path: root/templates/includes/book
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-03-31 12:31:01 -0700
committerSamy Pessé <samypesse@gmail.com>2014-03-31 12:31:01 -0700
commit4210794de64b396409af080b698a3b5894ee2c80 (patch)
tree5f7ee99c433483b837b20f9d359780008b2ea5c4 /templates/includes/book
parent77a4c1042c7c13327641fb057c3c203cbf868782 (diff)
downloadgitbook-4210794de64b396409af080b698a3b5894ee2c80.zip
gitbook-4210794de64b396409af080b698a3b5894ee2c80.tar.gz
gitbook-4210794de64b396409af080b698a3b5894ee2c80.tar.bz2
Fix all relative links
Diffstat (limited to 'templates/includes/book')
-rw-r--r--templates/includes/book/summary.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html
index 65fd398..99c226c 100644
--- a/templates/includes/book/summary.html
+++ b/templates/includes/book/summary.html
@@ -1,20 +1,20 @@
<div class="book-summary">
<ul class="summary">
<li>
- <a href="/book/{{ book.attributes.full_name }}/README.md">Introduction</a>
+ <a href="{{ basePath }}/README.html">Introduction</a>
</li>
<li>
- <a href="https://github.com/{{ book.attributes.owner.login }}" target="blank">About the author</a>
+ <a href="https://github.com/{{ owner }}" target="blank">About the author</a>
</li>
<li class="divider"></li>
{% for item in summary.chapters %}
<li>
- <a href="{{ item.chapter.path }}">{{ item.chapter.title }}</a>
+ <a href="{{ basePath }}/{{ item.chapter.path }}">{{ item.chapter.title }}</a>
{% if item.articles.length > 0 %}
<ul class="articles">
{% for article in item.articles %}
<li>
- <a href="{{ article.path }}">{{ article.title }}</a>
+ <a href="{{ basePath }}/{{ article.path }}">{{ article.title }}</a>
</li>
{% endfor %}
</ul>