{%- if jekyll.environment != 'production' and site.data.setup.fast-content-build -%}{%- else -%} {%- comment -%}{%- endcomment %}
{%- assign olderPosts = 'Older Posts' -%} {%- if site.data.text-for.tOlderPosts -%}{%- assign olderPosts = site.data.text-for.tOlderPosts -%}{%- endif -%} {%- assign currentYear = "" -%} {%- assign currentMonth = "" -%} {%- assign yearDetails = false -%} {%- assign monthDetails = false %}

{{ olderPosts }}:

{%- for post in site.posts -%} {%- assign postYear = post.date | date: "%Y" -%} {%- assign postMonth = post.date | date: "%m" -%} {%- if postYear != currentYear -%} {%- assign currentYear = postYear -%} {%- if monthDetails %} {%- assign monthDetails == false -%} {%- endif -%} {%- if yearDetails %} {%- assign yearDetails == false -%} {%- endif %}
{{ currentYear }} {%- assign yearDetails = true -%} {%- endif -%} {%- if postMonth != currentMonth -%} {%- if postMonth == '01' -%}{%- assign monthString = site.data.text-for.tMonths[1] -%} {%- elsif postMonth == '02' -%}{%- assign monthString = site.data.text-for.tMonths[2] -%} {%- elsif postMonth == '03' -%}{%- assign monthString = site.data.text-for.tMonths[3] -%} {%- elsif postMonth == '04' -%}{%- assign monthString = site.data.text-for.tMonths[4] -%} {%- elsif postMonth == '05' -%}{%- assign monthString = site.data.text-for.tMonths[5] -%} {%- elsif postMonth == '06' -%}{%- assign monthString = site.data.text-for.tMonths[6] -%} {%- elsif postMonth == '07' -%}{%- assign monthString = site.data.text-for.tMonths[7] -%} {%- elsif postMonth == '08' -%}{%- assign monthString = site.data.text-for.tMonths[8] -%} {%- elsif postMonth == '09' -%}{%- assign monthString = site.data.text-for.tMonths[9] -%} {%- elsif postMonth == '10' -%}{%- assign monthString = site.data.text-for.tMonths[10] -%} {%- elsif postMonth == '11' -%}{%- assign monthString = site.data.text-for.tMonths[11] -%} {%- elsif postMonth == '12' -%}{%- assign monthString = site.data.text-for.tMonths[12] -%} {%- endif -%} {%- assign currentMonth = postMonth -%} {%- if monthDetails %}
{%- assign monthDetails == false -%} {%- endif %}
{{ monthString }} {%- assign monthDetails = true -%} {%- endif %}

{{ post.title }}

{%- endfor -%} {%- if monthDetails %}
{%- assign monthDetails == false -%} {%- endif %} {%- if yearDetails %} {%- assign yearDetails == false -%} {%- endif %}
{%- endif %}