Sha256: 1a4f268ed816284b2bc328e16b8c5ff82247cae5282bc677cfce559241a4b4b6

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

{% assign post = include.post %}
{% assign postSecs = post.date | date: '%s' %}
{% assign nowSecs = 'now' | date: '%s' %}
{% assign ageSecs = nowSecs | minus: postSecs %}

{% unless post.tags contains "evergreen" %}
  {% comment%} Two years in seconds {% endcomment %}
  {% comment %} TODO: more dynamic age? i.e. "three years ago" or "five years ago", etc.? {% endcomment %}
  {% if ageSecs > 63072000 %}
    <aside class="outdated">
      <strong>Note:</strong> this post was written over two years ago. The information below may be outdated.
    </aside>
  {% endif %}
{% endunless %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-elementary-blog-1.0.1 _includes/outdated.html