chris-website/views/pages/article.dt

21 lines
737 B
Plaintext

extends /parts/page
block header
title #{content.title} - Chris Netsoj.nl
meta(name="og:title", content="#{content.title}")
meta(name="og:type", content="article")
meta(name="og:article", content="article")
block sidebar
block content
article(itemscope, itemtype="https://schema.org/BlogPosting")
- import utils;
header
h1.title(itemprop="headline") #{content.title}
p.subtitle
| By <span itemprop="author">#{content.author}</span>
| on <span itemprop="datePublished">#{content.firstPublished.toHumanString}</span>
- if (content.firstPublished != content.updated)
|, updated on <span itemprop="dateModified">#{content.updated.toHumanString}</span>
section(itemprop="articleBody") !{content.content}