-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.html
42 lines (39 loc) · 1.11 KB
/
post.html
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
39
40
41
42
---
layout: default
---
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}
{% if page.categories and site.data.layout.categories_position == "header" %}
in
{% for category in page.categories %}
<span class="category">{{ category }}</span>
{% endfor %}
{% endif %}
{% if page.author %}
by {{ page.author }}
{% endif %}
{% if site.data.layout.readtime_display %}
-
{% if site.data.layout.readtime_title == "icon" %}
<span class="fa-oclock"></span>
{% else %}
{{ site.data.layout.readtime_title }}
{% endif %}
{% if page.content | readtime == 0 %}
less than a minute
{% else %}
{{ page.content | readtime | pluralize: "minute" }}
{% endif %}
{% endif %}</p>
</header>
<article class="post-content">
{{ content }}
</article>
<footer class ="post-footer">
{% if page.categories and site.data.layout.categories_position == "footer" %}
{% for category in page.categories %}
<span class="category">{{ category }}</span>
{% endfor %}
{% endif %}
</footer>