1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-12-25 23:04:06 +00: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 %} {% endif %}
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting"> <article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<h1 id="pagetitle" itemprop="name headline">{{ page.title }}</h1> <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"> <div itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Markus Birth" /> <meta itemprop="name" content="Markus Birth" />
<meta itemprop="givenName" content="Markus" /> <meta itemprop="givenName" content="Markus" />
<meta itemprop="familyName" content="Birth" /> <meta itemprop="familyName" content="Birth" />
<meta itemprop="birthDate" content="1980-11-16" /> <meta itemprop="birthDate" content="1980-11-16" />
</div> </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="articleSection" content="{{ page.categories[0] }}" />
<meta itemprop="keywords" content="{{ page.tags | join: ',' }}" /> <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 %}" /> <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 %} {% 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> <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="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' }}" /> <meta itemprop="datePublished" content="{{ post.created | date: '%Y-%m-%d' }}" />
{% if post.language == 'de' %} {% 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" /> <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>
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization"> <div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Markus Birth" /> <meta itemprop="name" content="Markus Birth" />
<link itemprop="logo" href="{{ site.url }}/images/sitelogo.png" />
</div> </div>
</li> </li>
{% endfor %} {% endfor %}