1
Fork 0

Updated posts list for posts by tag

This commit is contained in:
Jan-Erik Rediger 2025-03-30 12:24:13 +02:00
parent 261ddc6f6a
commit 71d551c305
3 changed files with 30 additions and 18 deletions

View file

@ -8,14 +8,18 @@ data:
<a href="/tagged/mozilla.xml">RSS Feed</a>
<table>
<ul class="posts-list">
{%- for post in collections.posts.pages %}
{%- assign postyear = post.published_date | date: "%Y" %}
{%- if post.tags and post.tags contains "mozilla" -%}
<tr>
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
</tr>
<li>
<a href="/{{post.permalink }}">
<span>{{post.title}}</span>
<span>
<time datetime="{{ post.published_date | date: "%FT%T%z" }}">{{ post.published_date | date: "%Y-%m-%d"}}</time>
</span>
</a>
</li>
{%- endif %}
{%- endfor %}
</table>
</ul>

View file

@ -8,14 +8,18 @@ data:
<a href="/tagged/nix.xml">RSS Feed</a>
<table>
<ul class="posts-list">
{%- for post in collections.posts.pages %}
{%- assign postyear = post.published_date | date: "%Y" %}
{%- if post.tags and post.tags contains "nix" -%}
<tr>
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
</tr>
<li>
<a href="/{{post.permalink }}">
<span>{{post.title}}</span>
<span>
<time datetime="{{ post.published_date | date: "%FT%T%z" }}">{{ post.published_date | date: "%Y-%m-%d"}}</time>
</span>
</a>
</li>
{%- endif %}
{%- endfor %}
</table>
</ul>

View file

@ -8,14 +8,18 @@ data:
<a href="/tagged/rust.xml">RSS Feed</a>
<table>
<ul class="posts-list">
{%- for post in collections.posts.pages %}
{%- assign postyear = post.published_date | date: "%Y" %}
{%- if post.tags and post.tags contains "rust" -%}
<tr>
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
</tr>
<li>
<a href="/{{post.permalink }}">
<span>{{post.title}}</span>
<span>
<time datetime="{{ post.published_date | date: "%FT%T%z" }}">{{ post.published_date | date: "%Y-%m-%d"}}</time>
</span>
</a>
</li>
{%- endif %}
{%- endfor %}
</table>
</ul>