hacks-guide-minimal-mistake.../_includes/page__date.html

7 lines
700 B
HTML
Raw Normal View History

{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
2020-06-03 04:22:56 +02:00
{% if page.last_modified_at %}
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.last_modified_at | date: "%Y-%m-%d" }}">{{ page.last_modified_at | date: date_format }}</time></p>
2020-06-03 04:22:56 +02:00
{% elsif page.date %}
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: date_format }}</time></p>
2020-06-03 04:22:56 +02:00
{% endif %}