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 %}
|
|
|
|
{% case reading_time %}
|
|
|
|
{% when 0 %}
|
|
|
|
{% assign phrase = "less than a minute." %}
|
|
|
|
{% when 1 %}
|
|
|
|
{% assign phrase = "about a minute." %}
|
|
|
|
{% else %}
|
|
|
|
{% assign phrase = " minutes." | prepend: reading_time %}
|
|
|
|
{% endcase %}
|
|
|
|
|
2019-04-23 21:23:47 +00:00
|
|
|
<time pubdate="pubdate">{{ page.published_date | date: "%b %d, %Y" }} - Reading time: {{ phrase }}</time>
|
|
|
|
|
|
|
|
{% if page.data and page.data.tags -%}
|
|
|
|
{%- assign tags = page.data.tags | join: ", " -%}
|
|
|
|
Tags: {{tags}}
|
|
|
|
{%- endif -%}
|
|
|
|
<br />
|
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>
|