{% assign lastmod_list = "" | split: "" %} {% for post in site.posts %} {% if post.date >= post.seo.date_modified or post.seo.date_modified == nil %} {% continue %} {% endif%} {% capture item %} {{ post.seo.date_modified }}::{{ post.title }}::{{ post.url }} {% endcapture %} {% assign lastmod_list = lastmod_list | push: item %} {% endfor %} {% if lastmod_list.size > 0 %}

{{ site.data.label.panel.lastmod }}

    {% assign MAX_SIZE = 5 %} {% assign sum = 0 %} {% assign sorted_posts = lastmod_list | sort | reverse %} {% for post in sorted_posts %} {% assign meta = post | split: "::" %}
  • {{ meta[1] }}
  • {% assign sum = sum | plus: 1 %} {% if sum >= MAX_SIZE %} {% break %} {% endif %} {% endfor %}
{% endif %}

{{ site.data.label.panel.trending_tags }}

{% capture tags_array %} {% for tag in site.tags %} {{ tag[1] | size }}:{{ tag[0] | replace: ' ', '-' }} {% endfor %} {% endcapture %} {% assign MAX = 10 %} {% assign count = 0 %} {% assign trends = tags_array | split: " " | sort | reverse %}
{% for trend in trends %} {% assign count = count | plus: 1 %} {% assign tag = trend | split: ":" | last %} {{ tag | replace: '-', ' ' }} {% if count >= MAX %} {% break %} {% endif %} {% endfor %}