From 624020a1d073e90d475740e552400dee03ca6763 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 12 Aug 2023 13:14:10 +0200 Subject: [PATCH] default text for empty sections --- web/community.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/community.html b/web/community.html index 6aa343c..2d1a441 100644 --- a/web/community.html +++ b/web/community.html @@ -21,6 +21,7 @@ summary: A fun simulation game where you mess with people's lives
The slug for this section is {{ section.slug }}.

+ {% assign any = false %} {% for content in site.data.community-content %} {% if content.section == section.slug %}
@@ -41,8 +42,12 @@ summary: A fun simulation game where you mess with people's lives An image showing off {{ content.name }}
+ {% assign any = true %} {% endif %} {% endfor %} + {% unless any %} + There's nothing in this section yet. + {% endunless %} {% endfor %}