diff --git a/_includes/page__date.html b/_includes/page__date.html new file mode 100644 index 00000000..e663f9b9 --- /dev/null +++ b/_includes/page__date.html @@ -0,0 +1,5 @@ +{% if page.last_modified_at %} +

{{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}

+{% elsif page.date %} +

{{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}

+{% endif %} diff --git a/_layouts/single.html b/_layouts/single.html index d799abed..c58eca02 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -51,11 +51,7 @@ layout: default

{{ site.data.ui-text[site.locale].meta_label }}

{% endif %} {% include page__taxonomy.html %} - {% if page.last_modified_at %} -

{{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}

- {% elsif page.date %} -

{{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}

- {% endif %} + {% include page__date.html %} {% if page.share %}{% include social-share.html %}{% endif %}