ryanvilbrandt / comic_git

A statically-hosted web comic server core intended to be hosted on github.io. For help getting started, click the Wiki link above!
23 stars 7 forks source link

Have a "No pages in this section" error text #19

Closed cvilbrandt closed 4 years ago

cvilbrandt commented 4 years ago

FTR, if you put in an archive section that has no pages yet, the build script breaks.

File "src/templates\infinite_scroll.tpl", line 5, in block "content" {%- for section in archive_sections %} File "C:\Users\artis\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\environment.py", line 471, in getattr return getattr(obj, attribute) jinja2.exceptions.UndefinedError: list object has no element 0

Especially for testing, it might be a good idea to have it print out a "No pages in this section" instead of breaking!

ryanvilbrandt commented 4 years ago

Obsolete now that storylines have been added