Tags are now a top-level frontmatter variable
This commit is contained in:
parent
97fa04f2d9
commit
7f925b58dd
|
@ -19,8 +19,8 @@ data:
|
|||
{% assign phrase = " minute read" | prepend: reading_time %}
|
||||
<time pubdate="pubdate">{{ post.published_date | date: "%b %d, %Y" }} · {{ phrase }}</time>
|
||||
|
||||
{% if post.data and post.data.tags -%}
|
||||
{%- for tag in post.data.tags %}
|
||||
{% if post.data and post.tags -%}
|
||||
{%- for tag in post.tags %}
|
||||
· <a href="/tagged/{{ tag }}.html">{{ tag }}</a>
|
||||
{%- endfor %}
|
||||
{%- endif -%}
|
||||
|
|
|
@ -11,7 +11,7 @@ data:
|
|||
<table>
|
||||
{%- 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.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>
|
||||
|
|
|
@ -8,7 +8,7 @@ permalink: /tagged/mozilla.xml
|
|||
<link>https://fnordig.de</link>
|
||||
<description>fnordig - posts tagged with 'mozilla'</description>
|
||||
{% for post in collections.posts.pages %}
|
||||
{%- if post.data.tags and post.data.tags contains "mozilla" -%}
|
||||
{%- if post.tags and post.tags contains "mozilla" -%}
|
||||
<item>
|
||||
<title>{{ post.title | escape }}</title>
|
||||
<link>https://fnordig.de/{{ post.permalink }}</link>
|
||||
|
|
|
@ -11,7 +11,7 @@ data:
|
|||
<table>
|
||||
{%- for post in collections.posts.pages %}
|
||||
{%- assign postyear = post.published_date | date: "%Y" %}
|
||||
{%- if post.data.tags and post.data.tags contains "nix" -%}
|
||||
{%- 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>
|
||||
|
|
|
@ -8,7 +8,7 @@ permalink: /tagged/nix.xml
|
|||
<link>https://fnordig.de</link>
|
||||
<description>fnordig - post tagged with 'nix'</description>
|
||||
{% for post in collections.posts.pages %}
|
||||
{%- if post.data.tags and post.data.tags contains "nix" -%}
|
||||
{%- if post.tags and post.tags contains "nix" -%}
|
||||
<item>
|
||||
<title>{{ post.title | escape }}</title>
|
||||
<link>https://fnordig.de/{{ post.permalink }}</link>
|
||||
|
|
|
@ -11,7 +11,7 @@ data:
|
|||
<table>
|
||||
{%- 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.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>
|
||||
|
|
|
@ -8,7 +8,7 @@ permalink: /tagged/rust.xml
|
|||
<link>https://fnordig.de</link>
|
||||
<description>fnordig - post tagged with 'rust'</description>
|
||||
{% for post in collections.posts.pages %}
|
||||
{%- if post.data.tags and post.data.tags contains "rust" -%}
|
||||
{%- if post.tags and post.tags contains "rust" -%}
|
||||
<item>
|
||||
<title>{{ post.title | escape }}</title>
|
||||
<link>https://fnordig.de/{{ post.permalink }}</link>
|
||||
|
|
Loading…
Reference in a new issue