Add human readable date, keep machine readable
This commit is contained in:
parent
9f879be71b
commit
76b3ca0d33
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ block content
|
|||
h1.title(itemprop="headline") #{content.title}
|
||||
p.subtitle
|
||||
| By <span itemprop="author">#{content.author}</span>
|
||||
| on <span itemprop="datePublished">#{content.firstPublished.toHumanString}</span>
|
||||
| on <time datetime="#{content.firstPublished.toISOExtString}" itemprop="datePublished">#{content.firstPublished.toHumanString}</time>
|
||||
- if (content.isModified)
|
||||
|, updated on <span itemprop="dateModified">#{content.updated.toHumanString}</span>
|
||||
|, updated on <time datetime="#{content.updated.toISOExtString}" itemprop="dateModified">#{content.updated.toHumanString}</time>
|
||||
section(itemprop="articleBody") !{content.content}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue