-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpost.html
37 lines (32 loc) · 1010 Bytes
/
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
---
layout: default
---
{% assign minutes = content | number_of_words | divided_by: 180 %}
{% if minutes == 0 %}
{% assign minutes = 1 %}
{% endif %}
<div class="post-header mb2">
<h1>{{ page.title }}</h1>
<span class="post-meta">{{ page.date | date: "%b %-d, %Y" }}</span><br>
{% if page.update_date %}
<span class="post-meta">Updated: {{ page.update_date | date: "%b %-d, %Y" }}</span><br>
{% endif %}
<span class="post-meta small">{{ minutes }} minute read</span>
</div>
<article class="post-content">
{{ content }}
</article>
{% if site.show_post_footers %}
{% include post_footer.html %}
{% endif %}
{% if site.show_related_posts %}
<h3 class="related-post-title">Related Posts</h3>
{% for post in site.related_posts %}
<div class="post ml2">
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
<h4 class="post-title">{{ post.title }}</h4>
<p class="post-summary">{{ post.summary }}</p>
</a>
</div>
{% endfor %}
{% endif %}