diff options
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c index 0ff1d26..de71713 100644 --- a/main.c +++ b/main.c @@ -217,7 +217,11 @@ int main(void) { for(int i = 0; i < count; i++) { if(entries[i].text != NULL || entry_get_text(&entries[i]) != -1) { - template_index_entry(entries[i]); + if(page_type == PAGE_TYPE_INDEX) { + template_index_entry(entries[i]); + } else { + template_single_entry(entries[i]); + } entry_unget_text(&entries[i]); } } |