2018-01-16 21:08:47 -06:00
|
|
|
---
|
|
|
|
layout: layouts/base.njk
|
|
|
|
templateClass: tmpl-post
|
|
|
|
---
|
|
|
|
<h1>{{ title }}</h1>
|
|
|
|
|
2021-03-17 16:29:07 -05:00
|
|
|
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
|
2022-06-29 12:02:12 -05:00
|
|
|
{%- for tag in tags | filterTagList %}
|
2022-06-29 12:03:41 -05:00
|
|
|
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
2021-03-17 16:29:07 -05:00
|
|
|
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a>
|
|
|
|
{%- endfor %}
|
|
|
|
|
2018-08-01 20:39:57 -05:00
|
|
|
{{ content | safe }}
|
2018-01-25 23:36:31 -06:00
|
|
|
|
2022-07-15 12:11:54 -05:00
|
|
|
<hr>
|
|
|
|
|
|
|
|
{% set i18nLinks = page.url | locale_links %}
|
|
|
|
{% if i18nLinks.length %}
|
|
|
|
<ul>
|
|
|
|
<li>
|
2022-07-27 17:00:44 -05:00
|
|
|
{{ "i18n.also" | i18n }}
|
2022-07-15 15:15:02 -05:00
|
|
|
{%- for link in i18nLinks %}
|
|
|
|
<a href="{{ link.url }}" lang="{{ link.lang }}" hreflang="{{ link.lang }}">{{ link.label }}</a>
|
|
|
|
{%- if not loop.last %},{% endif %}
|
|
|
|
{%- endfor -%}
|
2022-07-15 12:11:54 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-07-28 08:57:46 -05:00
|
|
|
{%- if collections.posts %}
|
2022-07-27 17:00:44 -05:00
|
|
|
{# these filters are locale-aware in 2.0.0-canary.14 #}
|
|
|
|
{%- set previousPost = collections.posts | getPreviousCollectionItem %}
|
|
|
|
{%- set nextPost = collections.posts | getNextCollectionItem %}
|
2021-03-17 16:29:07 -05:00
|
|
|
{%- if nextPost or previousPost %}
|
2020-07-27 15:19:01 -05:00
|
|
|
<ul>
|
2022-07-27 17:00:44 -05:00
|
|
|
{%- if previousPost %}<li>{{ "i18n.previous" | i18n }}: <a href="{{ previousPost.url | url }}">{{ previousPost.data.title }}</a></li>{% endif %}
|
|
|
|
{%- if nextPost %}<li>{{ "i18n.next" | i18n }}: <a href="{{ nextPost.url | url }}">{{ nextPost.data.title }}</a></li>{% endif %}
|
2020-07-27 15:19:01 -05:00
|
|
|
</ul>
|
2021-03-17 16:29:07 -05:00
|
|
|
{%- endif %}
|
2021-07-28 08:57:46 -05:00
|
|
|
{%- endif %}
|