bmen-jekyll/_layouts/post.html

37 lines
785 B
HTML
Raw Normal View History

2020-10-10 08:35:47 +00:00
---
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 %}