---
{
  "layout": "base.njk",
  "title": "latest posts",
  "curr": "latest",
  "noendnotes": true
}
---

{% set anchorRe = r/<a(\s|>)/i %}

<section role="feed"
         aria-label="latest posts"
         aria-busy="false"
         class="post-list"
         itemscope
         itemtype="https://schema.org/Blog"
>
  {%- for peaust in collections.all | posts | datesort -%}
    {%- if not peaust.data.listless -%}
      {%- set post_slug = peaust.data.title | slugify -%}
      {%- set post_id = post_slug ~ "--HEAD" -%}
      {%- set post_info_id = post_slug ~ "--INFO" -%}
      <article aria-labelledby="{{ post_id }}"
              aria-describedby="{{ post_info_id }}"
              aria-posinset="{{ loop.index }}"
              aria-setsize="{{ loop.length }}"
              class="post-preview"
              itemprop="blogPost"
              itemscope
              itemtype="https://schema.org/BlogPosting"
      >
        <header>
          {#--#}
          <h2 id="{{ post_id }}">
            {#--#}
            <a href="{{ peaust.url }}" itemprop="url"><span itemprop="name headline">
              {%- if peaust.data.titleHeading -%}
                {%- if anchorRe.test(peaust.data.titleHeading) -%}
                  {{- peaust.data.title -}}
                {%- else -%}
                  {{- peaust.data.titleHeading | safe -}}
                {%- endif -%}
              {%- else -%}
                {{- peaust.data.title -}}
              {%- endif -%}
            </span></a>
            {#--#}
          </h2>

          <div id="{{ post_info_id }}" class="post-info">
            {%- set d8 = peaust.data.date -%}
            <time itemprop="datePublished" datetime="{{ d8 }}">{{ d8 }}</time>
            {#--#}
            <span class="tags-listing">
              {#--#}
              <span class="tags-colon">Tags:&nbsp;</span>
              {#--#}
              <span class="tags-list">
                {%- for tag in peaust.data.tags -%}
                  <a href="{{ tag | tagpath }}" rel="tag" itemprop="keywords">{{ tag }}</a>
                  {%- if not loop.last -%}
                    ,
                  {% endif -%}
                {%- endfor -%}
              </span>
              {#--#}
            </span>
            {#--#}
          </div>

          {%- if peaust.data.series -%}
            <div class="assoc-series">
              {#--#}
              <span class="part-of-a-series">Part of a series:</span>
              <cite itemprop="isPartOf" itemscope itemtype="https://schema.org/CreativeWork">
                {%- series peaust.data.series, false, true -%}
              </cite>
              {#--#}
            </div>
          {%- endif -%}
        </header>
        {#--#}

        <div itemprop="abstract">
          {{- peaust | preview | safe -}}
        </div>

        {#--#}
        <footer>
          <a href="{{ peaust.url }}" itemprop="url">&hellip;Read the full post&nbsp;&rarr;</a>
          {#--#}
        </footer>
        {#--#}
      </article>
    {%- endif -%}
  {%- endfor -%}
</section>
