{% if site.data.updates %}
{% assign MAX_SIZE = 5 %}
{% assign sum = 0 %}
{% assign sort_list = "" | split: "" %}
{% for entry in site.data.updates %}
{% capture elem %}
{{- entry.lastmod -}}::{{- entry.filename -}}
{% endcapture %}
{% assign sort_list = sort_list | push: elem %}
{% endfor %}
{% assign sort_list = sort_list | sort | reverse %}
{% if sort_list.size > 0 %}
{{- site.data.label.panel.lastmod -}}
{% for item in sort_list %}
{% assign post_url = item | split: "::" | last | prepend: "/posts/" | append: "/" %}
{% assign post = site.posts | where: "url", post_url | first %}
{% if post %}
{% assign url = post.url | prepend: site.baseurl %}
- {{ post.title }}
{% assign sum = sum | plus: 1 %}
{% if sum >= MAX_SIZE %} {% break %} {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% if page.layout == 'post' and site.toc and page.toc %}
{{- site.data.label.panel.toc -}}
{% endif %}