1
Fork 0

Nicer layout for tagged posts

This commit is contained in:
Jan-Erik Rediger 2019-04-23 23:13:08 +02:00
parent 8d20d21b1b
commit 7481642f93
2 changed files with 22 additions and 14 deletions

View file

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

View file

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