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 %}
|
{% assign phrase = " minute read" | prepend: reading_time %}
|
||||||
<time pubdate="pubdate">{{ post.published_date | date: "%b %d, %Y" }} · {{ phrase }}</time>
|
<time pubdate="pubdate">{{ post.published_date | date: "%b %d, %Y" }} · {{ phrase }}</time>
|
||||||
|
|
||||||
{% if post.data and post.data.tags -%}
|
{% if post.data and post.tags -%}
|
||||||
{%- for tag in post.data.tags %}
|
{%- for tag in post.tags %}
|
||||||
· <a href="/tagged/{{ tag }}.html">{{ tag }}</a>
|
· <a href="/tagged/{{ tag }}.html">{{ tag }}</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
|
@ -11,7 +11,7 @@ data:
|
||||||
<table>
|
<table>
|
||||||
{%- 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.data.tags and post.data.tags contains "mozilla" -%}
|
{%- if post.tags and post.tags contains "mozilla" -%}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
|
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
|
||||||
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
|
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
|
||||||
|
|
|
@ -8,7 +8,7 @@ permalink: /tagged/mozilla.xml
|
||||||
<link>https://fnordig.de</link>
|
<link>https://fnordig.de</link>
|
||||||
<description>fnordig - posts tagged with 'mozilla'</description>
|
<description>fnordig - posts tagged with 'mozilla'</description>
|
||||||
{% for post in collections.posts.pages %}
|
{% 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>
|
<item>
|
||||||
<title>{{ post.title | escape }}</title>
|
<title>{{ post.title | escape }}</title>
|
||||||
<link>https://fnordig.de/{{ post.permalink }}</link>
|
<link>https://fnordig.de/{{ post.permalink }}</link>
|
||||||
|
|
|
@ -11,7 +11,7 @@ data:
|
||||||
<table>
|
<table>
|
||||||
{%- 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.data.tags and post.data.tags contains "nix" -%}
|
{%- if post.tags and post.tags contains "nix" -%}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
|
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
|
||||||
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
|
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
|
||||||
|
|
|
@ -8,7 +8,7 @@ permalink: /tagged/nix.xml
|
||||||
<link>https://fnordig.de</link>
|
<link>https://fnordig.de</link>
|
||||||
<description>fnordig - post tagged with 'nix'</description>
|
<description>fnordig - post tagged with 'nix'</description>
|
||||||
{% for post in collections.posts.pages %}
|
{% 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>
|
<item>
|
||||||
<title>{{ post.title | escape }}</title>
|
<title>{{ post.title | escape }}</title>
|
||||||
<link>https://fnordig.de/{{ post.permalink }}</link>
|
<link>https://fnordig.de/{{ post.permalink }}</link>
|
||||||
|
|
|
@ -11,7 +11,7 @@ data:
|
||||||
<table>
|
<table>
|
||||||
{%- 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.data.tags and post.data.tags contains "rust" -%}
|
{%- if post.tags and post.tags contains "rust" -%}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
|
<td>{{ post.published_date | date: "%d. %b %Y"}}</td>
|
||||||
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
|
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
|
||||||
|
|
|
@ -8,7 +8,7 @@ permalink: /tagged/rust.xml
|
||||||
<link>https://fnordig.de</link>
|
<link>https://fnordig.de</link>
|
||||||
<description>fnordig - post tagged with 'rust'</description>
|
<description>fnordig - post tagged with 'rust'</description>
|
||||||
{% for post in collections.posts.pages %}
|
{% 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>
|
<item>
|
||||||
<title>{{ post.title | escape }}</title>
|
<title>{{ post.title | escape }}</title>
|
||||||
<link>https://fnordig.de/{{ post.permalink }}</link>
|
<link>https://fnordig.de/{{ post.permalink }}</link>
|
||||||
|
|
Loading…
Reference in a new issue