From 4bf76f76e1cce40b11347e786f6ec112bd01f61f Mon Sep 17 00:00:00 2001 From: jonathan Date: Fri, 3 Mar 2023 02:30:01 +1030 Subject: [PATCH] update page page to bring in a dummy title if the title is empty --- src/pages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages.md b/src/pages.md index 730dff4..c977ad2 100644 --- a/src/pages.md +++ b/src/pages.md @@ -6,7 +6,7 @@ title: pages {% for tag in collections.tagsList %} {{tag}} {% for post in collections[tag] %} - \- [{{ post.data.title }}](/{{ tag }}/{{ post.data.page.fileSlug }}) + \- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }}) {% endfor %} {% endfor %} \ No newline at end of file