1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-12-24 22:54:09 +00:00

Improve Google markup.

This commit is contained in:
Markus Birth 2017-04-11 00:51:36 +02:00
parent f2e924d61c
commit 53cfe928b3
2 changed files with 7 additions and 8 deletions

View File

@ -31,7 +31,7 @@
</head> </head>
<body itemscope itemtype="http://schema.org/Blog"> <body itemscope itemtype="http://schema.org/Blog">
<meta itemprop="isBasedOnUrl" content="https://github.com/mbirth/wiki" /> <meta itemprop="isBasedOnUrl" content="https://github.com/mbirth/wiki" />
<meta itemprop="image" content="{{ site.url }}/images/sitelogo.png" /> <link itemprop="image" href="{{ site.url }}/images/sitelogo.png" />
<header> <header>
<div class="container"> <div class="container">
<div id="headerleft"> <div id="headerleft">
@ -59,19 +59,19 @@
</section> </section>
{% 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">{{ page.title }}</h1> <h1 id="pagetitle" itemprop="name headline">{{ page.title }}</h1>
<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>
<meta itemprop="headline" content="{{ page.title }}" />
<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="{{ page.created | date: '%Y-%m-%d' }}" /> <meta itemprop="dateCreated" content="{{ page.created | date: '%Y-%m-%d' }}" />
<meta itemprop="dateModified" content="{{ page.updated | date: '%Y-%m-%d' }}" /> <meta itemprop="dateModified" content="{{ page.updated | date: '%Y-%m-%d' }}" />
<meta itemprop="datePublished" content="{{ page.created | date: '%Y-%m-%d' }}" /> <meta itemprop="datePublished" content="{{ page.created | date: '%Y-%m-%d' }}" />
<meta itemprop="mainEntityOfPage" content="{{ page.url }}" />
{% if page.language == 'de' %} {% if page.language == 'de' %}
<meta itemprop="inLanguage" content="de" /> <meta itemprop="inLanguage" content="de" />
{% else %} {% else %}

View File

@ -2,7 +2,6 @@
title: Welcome to wiki.mbirth.de title: Welcome to wiki.mbirth.de
layout: default layout: default
--- ---
{% raw %}{::nomarkdown}{% endraw %}
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
@ -15,16 +14,16 @@ layout: default
} }
} }
</script> </script>
{% raw %}{:/nomarkdown}{% endraw %}
<h3>Latest posts ({{ site.posts | size }} total):</h3> <h3>Latest posts ({{ site.posts | size }} total):</h3>
<ul> <ul>
{% 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">{{ 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>
<meta itemprop="datePublished" content="{{ post.created | date: '%Y-%m-%d' }}" /> <meta itemprop="datePublished" content="{{ post.created | date: '%Y-%m-%d' }}" />
<meta itemprop="headline" content="{{ post.title }}" /> <div itemprop="author publisher" itemscope itemtype="http://schema.org/Person">
<meta itemprop="author" content="mbirth" /> <meta itemprop="name" content="Markus Birth" />
</div>
{% 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" />
<meta itemprop="inLanguage" content="de" /> <meta itemprop="inLanguage" content="de" />