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

View file

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

View file

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