2020-06-24 08:08:28 +00:00
|
|
|
extends /parts/page
|
|
|
|
|
2020-06-27 14:54:06 +00:00
|
|
|
block meta_data
|
|
|
|
- page_type = "article";
|
|
|
|
- page_title = content.title;
|
|
|
|
- page_url = "/post/" ~ content.slug;
|
|
|
|
- page_description = content.excerpt;
|
|
|
|
|
|
|
|
block extra_meta_data
|
|
|
|
meta(name="og:article:author:username", content=content.author)
|
|
|
|
meta(name="og:article:published_time", content=content.firstPublished.toISOExtString)
|
|
|
|
- if (content.isModified)
|
|
|
|
meta(name="og:article:modified_time", content=content.updated.toISOExtString)
|
2020-06-24 08:08:28 +00:00
|
|
|
|
|
|
|
block content
|
2020-06-24 17:57:04 +00:00
|
|
|
article(itemscope, itemtype="https://schema.org/BlogPosting")
|
2020-06-24 08:08:28 +00:00
|
|
|
- import utils;
|
|
|
|
header
|
2020-06-24 17:57:04 +00:00
|
|
|
h1.title(itemprop="headline") #{content.title}
|
2020-06-24 08:08:28 +00:00
|
|
|
p.subtitle
|
2020-06-24 17:57:04 +00:00
|
|
|
| By <span itemprop="author">#{content.author}</span>
|
|
|
|
| on <span itemprop="datePublished">#{content.firstPublished.toHumanString}</span>
|
2020-06-27 14:54:06 +00:00
|
|
|
- if (content.isModified)
|
2020-06-24 17:57:04 +00:00
|
|
|
|, updated on <span itemprop="dateModified">#{content.updated.toHumanString}</span>
|
|
|
|
section(itemprop="articleBody") !{content.content}
|