-
Notifications
You must be signed in to change notification settings - Fork 7
/
blog_post.njk
37 lines (31 loc) · 1.01 KB
/
blog_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
{% extends "./base.njk" %}
{# Ideally set through eleventyComputed in front-matter but not working. Bug? #}
{% set description = description or page.excerpt | trim %}
{% block head %}
<link rel="index" href="{{ env.BASE_URL }}/blog/">
{% endblock %}
{% block custom_style %}
{{ css_blog | cssmin | safe }}
{% endblock %}
{% block main %}
<section class="block">
<h1>{{ title }}</h1>
<h6>
{% if author %}
{% if authorlink %}
<a class="author" href="{{ authorlink }}" target="_blank">{{ author }}</a>
{% else %}
<span class="author">{{ author }}</span>
{% endif %}
{% endif %}
<time>{{ date | dateFormat('MMM d, yyyy') }}</time>
{% for item in tags %}
<a class="blogtag" href="/blog/tags/{{item}}/">#{{ item }}</a>
{% endfor %}
</h6>
{% Image image, 'Post Illustration', false, 'hero' %}
<p>{{ content | safe }}</p>
<br><br><hr>
<a class="button outline" href="/blog/">{% svgico 'arrow-circle-left' %} All Posts</a>
</section>
{% endblock %}