2018-01-16 22:08:47 -05:00
|
|
|
|
---
|
|
|
|
|
layout: layouts/base.njk
|
|
|
|
|
templateClass: tmpl-post
|
|
|
|
|
---
|
|
|
|
|
<h1>{{ title }}</h1>
|
|
|
|
|
|
2021-03-17 17:29:07 -04:00
|
|
|
|
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
|
2022-06-29 13:02:12 -04:00
|
|
|
|
{%- for tag in tags | filterTagList %}
|
2022-06-29 13:03:41 -04:00
|
|
|
|
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
2021-03-17 17:29:07 -04:00
|
|
|
|
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a>
|
|
|
|
|
{%- endfor %}
|
|
|
|
|
|
2018-08-01 21:39:57 -04:00
|
|
|
|
{{ content | safe }}
|
2018-01-26 00:36:31 -05:00
|
|
|
|
|
2022-07-15 13:11:54 -04:00
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
{% set i18nLinks = page.url | locale_links %}
|
|
|
|
|
{% if i18nLinks.length %}
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
This page is also available in: <!-- don’t forget to localize this text too -->
|
|
|
|
|
{%- for link in i18nLinks %}
|
|
|
|
|
{%- if not loop.first %},{% endif %}<a href="{{link.url}}" lang="{{link.lang}}" hreflang="{{link.lang}}">{{link.label}}</a>
|
|
|
|
|
{%- endfor -%}
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2021-07-28 09:57:46 -04:00
|
|
|
|
{%- if collections.posts %}
|
2022-07-15 13:11:54 -04:00
|
|
|
|
{%- set previousPost = collections.posts | getPreviousCollectionItem() %}
|
|
|
|
|
{%- set nextPost = collections.posts | getNextCollectionItem() %}
|
2021-03-17 17:29:07 -04:00
|
|
|
|
{%- if nextPost or previousPost %}
|
2020-07-27 16:19:01 -04:00
|
|
|
|
<ul>
|
2022-07-15 13:11:54 -04:00
|
|
|
|
{%- if previousPost %}<li>Previous: <a href="{{ previousPost.url | locale_url | url }}">{{ previousPost.data.title }}</a></li>{% endif %}
|
|
|
|
|
{%- if nextPost %}<li>Next: <a href="{{ nextPost.url | locale_url | url }}">{{ nextPost.data.title }}</a></li>{% endif %}
|
2020-07-27 16:19:01 -04:00
|
|
|
|
</ul>
|
2021-03-17 17:29:07 -04:00
|
|
|
|
{%- endif %}
|
2021-07-28 09:57:46 -04:00
|
|
|
|
{%- endif %}
|