update page page to bring in a dummy title if the title is empty

This commit is contained in:
uuupah authored and GitHub committed 2023-03-03 02:30:01 +10:30
1 parent 1a6cf63303
commit 4bf76f76e1
1 file changed
+1 -1
+1 -1
View File
@@ -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 %}
</div>