Refractored code and added extra comments
This commit is contained in:
parent
99f493dec3
commit
acd02aea20
8 changed files with 66 additions and 43 deletions
|
@ -8,12 +8,13 @@ block header
|
|||
block sidebar
|
||||
|
||||
block content
|
||||
article
|
||||
article(itemscope, itemtype="https://schema.org/BlogPosting")
|
||||
- import utils;
|
||||
header
|
||||
h1.title #{content.title}
|
||||
h1.title(itemprop="headline") #{content.title}
|
||||
p.subtitle
|
||||
| By #{content.author} on #{content.firstPublished.toHumanString}
|
||||
| By <span itemprop="author">#{content.author}</span>
|
||||
| on <span itemprop="datePublished">#{content.firstPublished.toHumanString}</span>
|
||||
- if (content.firstPublished != content.updated)
|
||||
|, updated on #{content.updated.toHumanString}
|
||||
| !{content.content}
|
||||
|, updated on <span itemprop="dateModified">#{content.updated.toHumanString}</span>
|
||||
section(itemprop="articleBody") !{content.content}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue