1
Fork 0
blog/_layouts/post.liquid

37 lines
936 B
Plaintext
Raw Normal View History

2017-07-09 12:18:22 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
2018-01-01 19:04:05 +00:00
{% include "_head.liquid" %}
2017-07-09 12:18:22 +00:00
</head>
<body>
2018-01-01 19:04:05 +00:00
{% include "_menu.liquid" %}
2017-07-09 12:18:22 +00:00
<main>
<article>
2018-01-01 19:04:05 +00:00
<h1>{{ page.title }}</h1>
2017-07-09 12:18:22 +00:00
{% assign reading_wpm = 200 %}
2018-01-01 19:04:05 +00:00
{% assign word_count = page.content | split: " " | size %}
2017-07-09 12:18:22 +00:00
{% assign reading_time = word_count | divided_by: 200 %}
2022-01-29 23:52:57 +00:00
{% if reading_time < 1%}
{% assign reading_time = 1 %}
{% endif %}
{% assign phrase = " minute read" | prepend: reading_time %}
2017-07-09 12:18:22 +00:00
<div class="metadata">
<time pubdate="pubdate">{{ page.published_date | date: "%b %d, %Y" }} · {{ phrase }}</time>
2019-04-23 21:23:47 +00:00
{% if page.data and page.data.tags -%}
{%- for tag in page.data.tags %}
· <a href="/tagged/{{ tag }}.html">{{ tag }}</a>
{%- endfor %}
2019-04-23 21:23:47 +00:00
{%- endif -%}
</div>
2017-07-09 12:18:22 +00:00
2018-01-01 19:04:05 +00:00
{{ page.content }}
2017-07-09 12:18:22 +00:00
</article>
</main>
2018-01-01 19:04:05 +00:00
{% include "_footer.liquid" %}
2017-07-09 12:18:22 +00:00
</body>
</html>