mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 19:28:35 +01:00
default text for empty sections
This commit is contained in:
parent
2d7743f8f5
commit
624020a1d0
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,7 @@ summary: A fun simulation game where you mess with people's lives
|
||||||
<br><span class="text-muted">The slug for this section is <code>{{ section.slug }}</code>.</span>
|
<br><span class="text-muted">The slug for this section is <code>{{ section.slug }}</code>.</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{% assign any = false %}
|
||||||
{% for content in site.data.community-content %}
|
{% for content in site.data.community-content %}
|
||||||
{% if content.section == section.slug %}
|
{% if content.section == section.slug %}
|
||||||
<div class="community-content">
|
<div class="community-content">
|
||||||
|
@ -41,8 +42,12 @@ summary: A fun simulation game where you mess with people's lives
|
||||||
<img id="{{ content.slug }}" src="/media/community/{{ content.slug }}.png" alt="An image showing off {{ content.name }}" width="100%">
|
<img id="{{ content.slug }}" src="/media/community/{{ content.slug }}.png" alt="An image showing off {{ content.name }}" width="100%">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% assign any = true %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% unless any %}
|
||||||
|
<em>There's nothing in this section yet.</em>
|
||||||
|
{% endunless %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue