1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-09-19 06:23:25 +01:00

More required (according to Google) schema.org tags.

This commit is contained in:
Markus Birth 2017-04-11 01:30:49 +02:00
parent 3e420b92b8
commit 498f5df3fc
2 changed files with 7 additions and 0 deletions

View File

@ -62,12 +62,17 @@
{% endif %}
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<h1 id="pagetitle" itemprop="name headline">{{ page.title }}</h1>
<link itemprop="image" href="{{ site.url }}/images/sitelogo.png" />
<div itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Markus Birth" />
<meta itemprop="givenName" content="Markus" />
<meta itemprop="familyName" content="Birth" />
<meta itemprop="birthDate" content="1980-11-16" />
</div>
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Markus Birth" />
<link itemprop="logo" href="{{ site.url }}/images/sitelogo.png" />
</div>
<meta itemprop="articleSection" content="{{ page.categories[0] }}" />
<meta itemprop="keywords" content="{{ page.tags | join: ',' }}" />
<meta itemprop="dateCreated" content="{% if page.created %}{{ page.created | date: '%Y-%m-%d' }}{% else %}{{ site.birthday | date: '%Y-%m-%d' }}{% endif %}" />

View File

@ -21,6 +21,7 @@ layout: default
{% for post in paginator.posts %}
<li itemscope itemtype="http://schema.org/BlogPosting"><a itemprop="url" href="{{ post.url }}"><span itemprop="dateModified">{{ post.date | date: "%Y-%m-%d" }}</span> - <span itemprop="name headline">{{ post.title }}</span></a>
<link itemprop="mainEntityOfPage" href="{{ site.url }}{{ post.url }}" />
<link itemprop="image" href="{{ site.url }}/images/sitelogo.png" />
<meta itemprop="datePublished" content="{{ post.created | date: '%Y-%m-%d' }}" />
{% if post.language == 'de' %}
<img class="emoji" title="&#x3a;de&#x3a;" alt="&#x3a;de&#x3a;" src="https://assets-cdn.github.com/images/icons/emoji/de.png" width="20" height="20" align="absmiddle" />
@ -36,6 +37,7 @@ layout: default
</div>
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Markus Birth" />
<link itemprop="logo" href="{{ site.url }}/images/sitelogo.png" />
</div>
</li>
{% endfor %}