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

Add datePublished meta to index page. Fix bad emoji display on GitHub

Pages.
This commit is contained in:
Markus Birth 2016-02-12 11:32:42 +01:00
parent 999681f159
commit 7d814cdfad

View File

@ -20,14 +20,15 @@ layout: default
<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">{{ post.title }}</span></a>
<meta itemprop="datePublished" content="{{ post.created | date: '%Y-%m-%d' }}" />
{% if post.language == 'de' %} {% 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" /> <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" />
{% else %} {% else %}
<meta itemprop="inLanguage" content="en" /> <meta itemprop="inLanguage" content="en" />
{% endif %} {% endif %}
{% if post.updated != post.created %} {% if post.updated != post.created %}
<img class="emoji" title=":up:" alt=":up:" src="https://assets-cdn.github.com/images/icons/emoji/up.png" width="20" height="20" align="absmiddle" /> <img class="emoji" title="&#x3a;up&#x3a;" alt="&#x3a;up&#x3a;" src="https://assets-cdn.github.com/images/icons/emoji/up.png" width="20" height="20" align="absmiddle" />
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}