-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpost.njk
38 lines (35 loc) · 1.04 KB
/
post.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
layout: layouts/base.njk
---
<div class="fr-container fr-py-6w">
{% if showBreadcrumb %}
{% include "components/breadcrumb.njk" %}
{% endif %}
<div class="fr-grid-row fr-grid-row--center" data-pagefind-body>
<div class="fr-col-12 fr-col-md-8">
{% include "components/taggroup.njk" %}
<div class="fr-grid-row">
<div class="fr-col-12 fr-col-md-9">
<hgroup>
<h1>{{ title }}</h1>
<p class="fr-text--xs">
{{ "published_on" | i18n }}
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
</p>
</hgroup>
</div>
<div class="fr-col-12 fr-col-md-3">
{% include "templates/share.njk" %}
</div>
</div>
{% if image %}
{% imageContent image.path, image.alt %}
{% endif %}
{{ content | safe }}
</div>
</div>
{% if collections.posts %}
{% set currentPosts = collections.posts %}
{% include "previousnextlinks.njk" %}
{% endif %}
</div>