summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-18 23:42:02 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-18 23:42:02 +0200
commitfd64c05809f3b8a785c64358fd8e70bebf0a4919 (patch)
tree6af7bc365309bcab15eefe1aab2a8c6a826bd910 /theme
parent6bce93d8930b01f0f9b359ba041ba575cb61e2b6 (diff)
downloadgitbook-fd64c05809f3b8a785c64358fd8e70bebf0a4919.zip
gitbook-fd64c05809f3b8a785c64358fd8e70bebf0a4919.tar.gz
gitbook-fd64c05809f3b8a785c64358fd8e70bebf0a4919.tar.bz2
Fix #118: fix single page generation when file from summary doesn't exists
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/page.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/theme/templates/page.html b/theme/templates/page.html
index 6ca1117..061df6d 100644
--- a/theme/templates/page.html
+++ b/theme/templates/page.html
@@ -77,9 +77,11 @@
<h1>{{ item.title }}</h1>
</article>
+ {% if pages[item.path] %}
<article>
{{ articleContent(pages[item.path].content) }}
</article>
+ {% endif %}
{% if item.articles.length > 0 %}
{% for article in item.articles %}