mirror of
https://github.com/mbirth/wiki.git
synced 2024-12-24 22:54:09 +00:00
Improve schema tags.
This commit is contained in:
parent
eea1a78b78
commit
e4ff8510c9
12
index.html
12
index.html
@ -2,17 +2,17 @@
|
||||
title: Welcome to wiki.mbirth.de
|
||||
layout: default
|
||||
---
|
||||
<script type="application/ld+json">
|
||||
<script type="application/ld+json">{% raw %}
|
||||
{
|
||||
"\@context": "http://schema.org",
|
||||
"\@type": "WebSite",
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"url": "{{ site.url }}/",
|
||||
"potentialAction": {
|
||||
"\@type": "SearchAction",
|
||||
"@type": "SearchAction",
|
||||
"target": "{{ site.url }}/?q={search_term_string}",
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
}
|
||||
}{% endraw %}
|
||||
</script>
|
||||
|
||||
<h3>Latest posts ({{ site.posts | size }} total):</h3>
|
||||
@ -21,6 +21,8 @@ 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">{{ post.title }}</span></a>
|
||||
<meta itemprop="datePublished" content="{{ post.created | date: '%Y-%m-%d' }}" />
|
||||
<meta itemprop="headline" content="{{ post.title }}" />
|
||||
<meta itemprop="author" content="mbirth" />
|
||||
{% if post.language == 'de' %}
|
||||
<img class="emoji" title=":de:" alt=":de:" src="https://assets-cdn.github.com/images/icons/emoji/de.png" width="20" height="20" align="absmiddle" />
|
||||
<meta itemprop="inLanguage" content="de" />
|
||||
|
Loading…
Reference in New Issue
Block a user