sort community showcase items

This commit is contained in:
Ell 2023-08-12 23:18:39 +02:00
parent 35320f570d
commit 154d1e2d9e
3 changed files with 4 additions and 3 deletions

View file

@ -10,16 +10,17 @@ summary: A fun simulation game where you mess with people's lives
<h1>💬 Community Showcase</h1>
<p>Ever since Tiny Life released into Early Access, the game's community has been growing steadily, and you all have been absolutely amazing. You've released videos, livestreamed gameplay, created mods, households, lots and other custom content, and you've even drawn fan art of pre-made Tinies! We love community contributions, and so we want to dedicate this section to our community and showcase some of the awesome stuff you've created.</p>
<p>All content on this page abides by the <a href="https://docs.tinylifegame.com/articles/content_policy.html">Tiny Life Content and Community Policy</a>, and you can consider content on this page to be officially endorsed. Nevertheless, please always take care when downloading and installing custom content and mods for Tiny Life.</p>
<p>If you're interested in having your content added to this page, please let us know on <a href="https://link.tinylifegame.com/discordweb">the Discord server</a> or <a href="https://github.com/Ellpeck/TinyLifeWeb/blob/main/web/_data/community-content.json">submit a pull request</a>.</p>
<p>If you're interested in having your content added to this page, please let us know on <a href="https://link.tinylifegame.com/discordweb">the Discord server</a> or <a href="https://github.com/Ellpeck/TinyLifeWeb/blob/main/web/_data/community_content.json">submit a pull request</a>.</p>
</div>
{% for section in site.data.community-sections %}
{% assign sorted_content = site.data.community_content | sort_natural: "name" %}
{% for section in site.data.community_sections %}
<div class="community-section">
<h2 id="{{ section.slug }}">{{ section.name }}</h2>
<p>{{ section.desc }}</p>
{% assign any = false %}
{% for content in site.data.community-content %}
{% for content in sorted_content %}
{% if content.section == section.slug %}
{% assign slug = content.name | slugify %}
<div class="community-content-box">