popov.link/_layouts/page.html
Valentin Popov 3c44847bdb
Added micro-markup 'Schema.org' for page
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-09-19 02:41:20 +04:00

23 lines
858 B
HTML

---
layout: default
---
<article itemtype="http://schema.org/WebPage" 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">
<h1 class="text-muted">
<span itemprop="name">{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
</h1>
</header>
<!-- Description -->
<meta itemprop="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
<!-- Content -->
<section itemprop="mainContentOfPage">
{{ content }}
</section>
</article>