mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 11:23:29 +01:00
reorder posts categories
This commit is contained in:
parent
a059141b5e
commit
8b4106a280
2 changed files with 26 additions and 27 deletions
17
web/_includes/devlog_category.html
Normal file
17
web/_includes/devlog_category.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<div class="devlogs">
|
||||
<h2 class="devlog-category" id="{{ include.tag | slugify }}">{{ include.tag }}</h2>
|
||||
<p>{{ include.description }}</p>
|
||||
|
||||
{% for post in site.posts %}
|
||||
{% if post.tags contains include.tag %}
|
||||
<div class="devlog">
|
||||
<h4 class="devlog-title">{{ post.title }}</h4>
|
||||
<div class="devlog-date text-muted">{{ post.date | date_to_string }}</div>
|
||||
<div>
|
||||
<a href="{{ post.url }}">Read this post</a> –
|
||||
<a href="{{ post.itch }}">Read on itch</a> –
|
||||
<a href="{{ post.steam }}">Read on Steam</a></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
|
@ -2,31 +2,13 @@
|
|||
<h1 id="posts">📢 Posts</h1>
|
||||
<p>Posts are organized into categories, which you can find below. If you want to receive all these posts in your inbox or your favorite feed reader, you can subscribe to <a href="#subscribe">the mailing list</a> or <a href="/feed.xml">the Atom feed</a>.</p>
|
||||
|
||||
{% assign sorted = site.tags | sort %}
|
||||
{% for tag in sorted %}
|
||||
<div class="devlogs">
|
||||
<h2 class="devlog-category" id="{{ tag[0] | slugify }}">{{ tag[0] }}</h2>
|
||||
<p>
|
||||
{% case tag[0] %}
|
||||
{% when "Devlogs" %}
|
||||
Along with every major update, we publish a devlog that features additional information as well as some screenshots. You can also read <a href="https://docs.tinylifegame.com/Changelog">the full changelog</a>.
|
||||
{% when "Community Showcase" %}
|
||||
We want to dedicate this section to our community and showcase some of the awesome stuff you've created. Be it in-game content, videos, or fan art, this category is dedicated to your creations.
|
||||
{% when "Tiny Technicalities" %}
|
||||
Tiny Technicalities gives you a little look behind the scenes of Tiny Life development, including explanations about the graphics, music, AI, build mode, and more!
|
||||
{% endcase %}
|
||||
</p>
|
||||
|
||||
{% for post in tag[1] %}
|
||||
<div class="devlog">
|
||||
<h4 class="devlog-title">{{ post.title }}</h4>
|
||||
<div class="devlog-date text-muted">{{ post.date | date_to_string }}</div>
|
||||
<div>
|
||||
<a href="{{ post.url }}">Read this post</a> –
|
||||
<a href="{{ post.itch }}">Read on itch</a> –
|
||||
<a href="{{ post.steam }}">Read on Steam</a></div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% include devlog_category.html
|
||||
tag="Community Showcase"
|
||||
description="We want to dedicate this section to our community and showcase some of the awesome stuff you've created. Be it in-game content, videos, or fan art, this category is dedicated to your creations." %}
|
||||
{% include devlog_category.html
|
||||
tag="Tiny Technicalities"
|
||||
description="Tiny Technicalities gives you a little look behind the scenes of Tiny Life development, including explanations about the graphics, music, AI, build mode, and more!" %}
|
||||
{% include devlog_category.html
|
||||
tag="Devlogs"
|
||||
description="Along with every major update, we publish a devlog that features additional information as well as some screenshots. You can also read <a href=\"https://docs.tinylifegame.com/Changelog\">the full changelog</a>." %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue