🐛 fix: consistent date format & remove invalid <time> tags

main
welpo 2 years ago
parent 4cef13a7dd
commit 1242b909a2

@ -8,7 +8,7 @@
<div class="meta">
{%- if page.date %}
<time>{{ page.date | date(format="%d %B %Y") }}</time>
{{ page.date | date(format="%d %B %Y") }}
{% endif -%}
<br />
<span>{{ page.reading_time }} minute read</span>
@ -86,7 +86,7 @@
<div class="meta">
{% if page.date %}
Posted on <time>{{ page.date | date(format="%Y-%m-%d") }}</time>
Posted on {{ page.date | date(format="%d %B %Y") }}
~
{% endif %}
<span> {{ page.reading_time }} minute read</span>
@ -182,7 +182,7 @@
<div class="meta">
{%- if page.date %}
<time>{{ page.date | date(format="%Y-%m-%d") }}</time>
{{ page.date | date(format="%d %B %Y") }}
{% endif -%}
{% if page.draft %}
<span class="draft-label">DRAFT</span>
@ -212,7 +212,7 @@
{% for page in pages %}
<li class="post">
<a href="{{ page.permalink }}">{{ page.title }}</a>
<span class="meta">{{ page.date | date(format="%Y-%m-%d") }}</span>
<span class="meta">{{ page.date | date(format="%d %B %Y") }}</span>
</li>
{% endfor %}
</ul>

Loading…
Cancel
Save