Commit 68037c38 by Tobias Rautenkranz

Fix date format

parent e38f61c6
<footer>
<p>
<a href="/changelog.html">
{% assign date_format = "%Y-%m-%d" %}
{% if page and page.date %}
<time datetime="{{ page.date | date_to_xmlschema}}" itemprop="datePublished">
{% assign date_format = "%c" %}
{{ page.date | date: date_format }}</time></a> {% comment %}/a tag here to prevent
whitespace in the link {% endcomment %}
{% else %}
<time datetime="{{ site.time | date_to_xmlschema}}">
{% assign date_format = "%c" %}
{{ site.time | date: date_format }}</time></a>
{% endif %}
......
......@@ -5,11 +5,11 @@ layout: default
<header>
<div>
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{% assign date_format = "%c" %}
{% assign date_format = "%Y-%m-%d" %}
{{ page.date | date: date_format }}
</time>
{% for tag in page.tags %}
<a rel="tag" href="{{ tag | prepend:"tag/" | relative_url }}">{{ tag }}</a>
<a rel="tag" href="{{ tag | prepend:"tag/" | relative_url }}.html">{{ tag }}</a>
{% endfor %}
</div>
</header>
......
......@@ -94,6 +94,7 @@ article header div {
left: 1em;
top: 7em;
font-size: 0.8em;
font-weight: bold;
}
a[rel=tag]:before{
content: "[";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment