mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 19:28:35 +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>
|
<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>
|
<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 %}
|
{% include devlog_category.html
|
||||||
{% for tag in sorted %}
|
tag="Community Showcase"
|
||||||
<div class="devlogs">
|
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." %}
|
||||||
<h2 class="devlog-category" id="{{ tag[0] | slugify }}">{{ tag[0] }}</h2>
|
{% include devlog_category.html
|
||||||
<p>
|
tag="Tiny Technicalities"
|
||||||
{% case tag[0] %}
|
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!" %}
|
||||||
{% when "Devlogs" %}
|
{% include devlog_category.html
|
||||||
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>.
|
tag="Devlogs"
|
||||||
{% when "Community Showcase" %}
|
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>." %}
|
||||||
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 %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue