2021-03-10 17:45:12 +00:00
|
|
|
extends parts/page
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
block content
|
2021-03-11 16:22:40 +00:00
|
|
|
article(itemscope, itemtype="https://schema.org/BlogPosting", lang="#{content.language}")
|
2021-11-18 18:28:24 +00:00
|
|
|
- import nl.netsoj.chris.blog.utils;
|
2021-03-10 17:45:12 +00:00
|
|
|
header
|
|
|
|
h1.title(itemprop="headline") #{content.title}
|
|
|
|
p.subtitle
|
|
|
|
| By <span itemprop="author">#{content.author}</span>
|
|
|
|
| on <time datetime="#{content.firstPublished.toISOExtString}" itemprop="datePublished">#{content.firstPublished.toHumanString}</time>
|
|
|
|
- if (content.isModified)
|
|
|
|
|, updated on <time datetime="#{content.updated.toISOExtString}" itemprop="dateModified">#{content.updated.toHumanString}</time>
|
|
|
|
section(itemprop="articleBody") !{content.content}
|