forked from yousinix/portfolYOU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.html
37 lines (30 loc) · 785 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: page
---
<h1><b>{{ page.title }}</b></h1>
<p class="post-metadata text-muted">
{{ page.date | date_to_long_string }} -
<b>
{%- assign words = content | number_of_words -%}
{%- if words < 360 -%}
less than 1 min read time
{%- else -%}
{{ words | divided_by: 180 }} mins read time
{%- endif -%}
</b>
<br>
{%- if page.tags != empty -%}
Tags:
{% for tag in page.tags %}
<a class="text-decoration-none no-underline" href="{{ tag | slugify | prepend:'/blog/tags#' | relative_url }}">
<span class="tag badge badge-pill text-primary border border-primary">{{ tag }}</span>
</a>
{% endfor %}
{%- endif -%}
</p>
{{ content }}
{% if page.comments %}
<div class="pt-5">
{% include blog/disqus.html %}
</div>
{% endif %}