diff --git a/theme/blog-post.html b/theme/blog-post.html index 56f6767e..1caec802 100644 --- a/theme/blog-post.html +++ b/theme/blog-post.html @@ -244,6 +244,26 @@
+ {% set postyear = page.config.date.created.strftime('%s') | int %} + {% set currentyear = build_date_utc.strftime('%s') | int %} + {% set difference = (currentyear / 2628000) - (postyear / 2628000) %} + {% if difference > 18 %} + {% set yearsdifference = ((difference - 1) / 12) | int %} +
+
+

+ This article is more than {{ yearsdifference }} + {% if yearsdifference == 1 %} + year + {% else %} + years + {% endif %} + old +

+
+
+ {% endif %} + {% block content %} {% include "partials/content.html" %} {% endblock %}