diff options
author | Peter Ullrich <PJUllrich@users.noreply.github.com> | 2019-02-04 16:16:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-04 16:16:39 +0100 |
commit | 42e33bb70188c1c28db2b21b6c4b83a2df94bd5e (patch) | |
tree | b808de77614dc804ddf4866e8c3c490b609cda13 | |
parent | deccf69d77245ddfde3ffaf36a743bf00828b36f (diff) | |
download | pelican-themes-42e33bb70188c1c28db2b21b6c4b83a2df94bd5e.tar.gz |
Fix "loop is undefined" issue.
-rw-r--r-- | nmnlist/templates/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nmnlist/templates/index.html b/nmnlist/templates/index.html index 274eb5d..ab83db4 100644 --- a/nmnlist/templates/index.html +++ b/nmnlist/templates/index.html @@ -24,11 +24,11 @@ {% else %} <li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></li> {% endif %} -{% endfor %} - {% if loop.length > 1 %} - </ol> - </section><!-- #article-list --> -{% endif %} + {% if loop.length > 1 %} + </ol> + </section><!-- #article-list --> + {% endif %} + {% endfor %} {% else %} Pas d'articles pour le moment. {% endif %} |