feat(schema): Remove old markup
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
122d8864a7
commit
19fbb3342a
@ -2,22 +2,16 @@
|
|||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<article itemtype="http://schema.org/WebPage" itemscope>
|
<article>
|
||||||
<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 -->
|
||||||
<header class="page-header">
|
<header>
|
||||||
<h1 class="text-muted">
|
<h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1>
|
||||||
<span itemprop="name">{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
|
|
||||||
</h1>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Description -->
|
|
||||||
<meta itemprop="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<section itemprop="mainContentOfPage">
|
<section>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</article>
|
</article>
|
@ -2,29 +2,15 @@
|
|||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<article itemtype="http://schema.org/Article" itemscope>
|
<article>
|
||||||
<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 -->
|
||||||
<header class="page-header">
|
<header>
|
||||||
<h1 class="text-muted">
|
<h1>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</h1>
|
||||||
<span itemprop="headline">{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</span>
|
|
||||||
<p><small><time itemprop="datePublished" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_long_string }}</time></small></p>
|
|
||||||
</h1>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- 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 -->
|
<!-- Content -->
|
||||||
<section itemprop="articleBody">
|
<section>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user