aboutsummaryrefslogtreecommitdiff
path: root/_layouts/page.html
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-09-19 01:41:20 +0300
committerValentin Popov <info@valentineus.link>2018-09-19 01:41:20 +0300
commit3c44847bdbdc6a38c2286e0e73d38fa21ddeab4d (patch)
tree993483272388e674fdd685b84ed6efd3454a53df /_layouts/page.html
parent08d3c86e94142c4efe6e6f089bf652c6a223107a (diff)
downloadpopov.link-3c44847bdbdc6a38c2286e0e73d38fa21ddeab4d.tar.xz
popov.link-3c44847bdbdc6a38c2286e0e73d38fa21ddeab4d.zip
Added micro-markup 'Schema.org' for page
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_layouts/page.html')
-rw-r--r--_layouts/page.html19
1 files changed, 14 insertions, 5 deletions
diff --git a/_layouts/page.html b/_layouts/page.html
index fcb0e0a..5dd9fab 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -2,13 +2,22 @@
layout: default
---
-<article>
+<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">
- {{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
- <p><small>{{ page.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</small></p>
+ <span itemprop="name">{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
</h1>
</header>
- {{ content }}
-</article>
+ <!-- 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> \ No newline at end of file