Make metadata more consistent
This commit is contained in:
parent
561bcdc366
commit
8d2feaa76b
6 changed files with 51 additions and 12 deletions
|
@ -1,11 +1,16 @@
|
|||
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 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
|
||||
article(itemscope, itemtype="https://schema.org/BlogPosting")
|
||||
|
@ -15,6 +20,6 @@ block content
|
|||
p.subtitle
|
||||
| By <span itemprop="author">#{content.author}</span>
|
||||
| on <span itemprop="datePublished">#{content.firstPublished.toHumanString}</span>
|
||||
- if (content.firstPublished != content.updated)
|
||||
- if (content.isModified)
|
||||
|, updated on <span itemprop="dateModified">#{content.updated.toHumanString}</span>
|
||||
section(itemprop="articleBody") !{content.content}
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
extends /parts/page.dt
|
||||
|
||||
block header
|
||||
title #{content.title} - Chris Netsoj.nl
|
||||
block meta_data
|
||||
- page_title = content.title;
|
||||
- if (content.slug == "index")
|
||||
- page_url = "/";
|
||||
- else
|
||||
- page_url = "/" ~ content.slug;
|
||||
|
||||
block sidebar
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
extends /parts/page
|
||||
block header
|
||||
title #{content.title} - Netsoj.nl
|
||||
block meta_data
|
||||
- page_title = content.title;
|
||||
- page_url = "/project/" ~ content.slug;
|
||||
- page_image = content.icon;
|
||||
- page_description = content.description;
|
||||
|
||||
block sidebar
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue