1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-09 13:16:45 +00:00

More metadata!

This commit is contained in:
Markus Birth 2017-04-11 01:25:27 +02:00
parent 36b1b5badc
commit 3e420b92b8
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,6 @@
name: "wiki.mbirth.de"
description: "All you never wanted to know"
birthday: "2014-05-08 21:23:39 +0200"
url: "http://wiki.mbirth.de"

View File

@ -32,7 +32,8 @@
<body itemscope itemtype="http://schema.org/Blog">
<meta itemprop="isBasedOnUrl" content="https://github.com/mbirth/wiki" />
<link itemprop="image" href="{{ site.url }}/images/sitelogo.png" />
<meta itemprop="datePublished" content="{{ site.time | date: '%Y-%m-%d' }}" />
<meta itemprop="datePublished" content="{{ site.birthday | date: '%Y-%m-%d' }}" />
<meta itemprop="dateModified" content="{{ site.time | date: '%Y-%m-%d' }}" />
<header>
<div class="container">
<div id="headerleft">
@ -69,9 +70,9 @@
</div>
<meta itemprop="articleSection" content="{{ page.categories[0] }}" />
<meta itemprop="keywords" content="{{ page.tags | join: ',' }}" />
<meta itemprop="dateCreated" content="{{ page.created | 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="dateCreated" content="{% if page.created %}{{ page.created | date: '%Y-%m-%d' }}{% else %}{{ site.birthday | date: '%Y-%m-%d' }}{% endif %}" />
<meta itemprop="dateModified" content="{% if page.updated %}{{ page.updated | date: '%Y-%m-%d' }}{% else %}{{ site.time | date: '%Y-%m-%d' }}{% endif %}" />
<meta itemprop="datePublished" content="{% if page.created %}{{ page.created | date: '%Y-%m-%d' }}{% else %}{{ site.birthday | date: '%Y-%m-%d' }}{% endif %}" />
<meta itemprop="mainEntityOfPage" content="{{ site.url }}{{ page.url }}" />
{% if page.language == 'de' %}
<meta itemprop="inLanguage" content="de" />