Added micro-markup 'Schema.org' for posts
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
e2d720bead
commit
08d3c86e94
@ -2,15 +2,32 @@
|
|||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<article>
|
<article itemtype="http://schema.org/Article" itemscope>
|
||||||
|
<link itemprop="mainEntityOfPage" itemscope href="{{ page.url | absolute_url | uri_escape }}" />
|
||||||
|
<link itemprop="image" itemscope href="{{ page.image | default: site.image | absolute_url | uri_escape }}" />
|
||||||
|
|
||||||
|
<!-- Header -->
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1 class="text-muted">
|
<h1 class="text-muted">
|
||||||
{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
|
<span itemprop="headline">{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
|
||||||
<p><small><time datetime="{{ page.date | date_to_xmlschema}}">{{ page.date | date_to_long_string }}</time></small></p>
|
<p><small><time itemprop="datePublished" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_long_string }}</time></small></p>
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{ content }}
|
<!-- Description -->
|
||||||
|
<meta itemprop="description" content="{{ page.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
|
|
||||||
|
<!-- Author -->
|
||||||
|
<section itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||||
|
<meta itemprop="email" content="{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
|
<meta itemprop="name" content="{{ site.author.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Content -->
|
||||||
|
<section itemprop="articleBody">
|
||||||
|
{{ content }}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Comments -->
|
||||||
{% include disqus.html %}
|
{% include disqus.html %}
|
||||||
</article>
|
</article>
|
Loading…
x
Reference in New Issue
Block a user