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 %}
|
2022-01-29 23:48:20 +00:00
|
|
|
{% assign phrase = " minute read" | prepend: reading_time %}
|
2017-07-09 12:18:22 +00:00
|
|
|
{% endcase %}
|
|
|
|
|
2022-01-29 23:48:20 +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 -%}
|
2022-01-29 23:48:20 +00:00
|
|
|
{%- for tag in page.data.tags %}
|
|
|
|
· <a href="/tagged/{{ tag }}.html">{{ tag }}</a>
|
|
|
|
{%- endfor %}
|
2019-04-23 21:23:47 +00:00
|
|
|
{%- endif -%}
|
2022-01-29 23:48:20 +00:00
|
|
|
</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>
|