diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-18 23:42:02 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-18 23:42:02 +0200 |
commit | fd64c05809f3b8a785c64358fd8e70bebf0a4919 (patch) | |
tree | 6af7bc365309bcab15eefe1aab2a8c6a826bd910 | |
parent | 6bce93d8930b01f0f9b359ba041ba575cb61e2b6 (diff) | |
download | gitbook-fd64c05809f3b8a785c64358fd8e70bebf0a4919.zip gitbook-fd64c05809f3b8a785c64358fd8e70bebf0a4919.tar.gz gitbook-fd64c05809f3b8a785c64358fd8e70bebf0a4919.tar.bz2 |
Fix #118: fix single page generation when file from summary doesn't exists
-rw-r--r-- | theme/templates/page.html | 2 |
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 %} |