<article class=post id={{tpl:lang post-id}}-{{tpl:EntryID}}>
  <header>
    <time class="post-date text-secondary" datetime="{{tpl:EntryDate iso8601="1"}}">{{tpl:EntryDate}}</time><tpl:EntryIf selected="1"><span class=text-secondary> – {{tpl:lang post-selected-label}} ⭐️</span></tpl:EntryIf>

    <h1>{{tpl:EntryTitle}}</h1>
  </header>

  <div class=content-text>
    {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}

    {{tpl:EntryContent imagewide="1"}}

    {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
  </div>

  <footer class=post-footer>
    <tpl:EntryIf has_attachment="1">
      {{tpl:include src="_attachments.html"}}
    </tpl:EntryIf>

    <tpl:EntryIf has_category="1">
      <div class="post-meta text-secondary">
        {{tpl:lang post-category-prefix}} <a href="{{tpl:EntryCategoryURL}}" rel=tag>{{tpl:EntryCategory}}</a>
      </div>
    </tpl:EntryIf>

    <tpl:EntryIf>
      <tpl:EntryTags>
        <tpl:TagsHeader>
          <div class="post-meta text-secondary">{{tpl:odysseyPostTagsBefore}}
        </tpl:TagsHeader>

        <a href="{{tpl:TagURL}}" rel=tag>{{tpl:TagID}}</a><tpl:LoopPosition start="1" length="-1">, </tpl:LoopPosition>

        <tpl:TagsFooter>
          </div>
        </tpl:TagsFooter>
      </tpl:EntryTags>
    </tpl:EntryIf>
  </footer>
</article>

<div class="post-pagination text-secondary">
  <tpl:EntryPrevious>
    <div class=post-pagination-prev>
      <small class=post-pagination-title>{{tpl:lang post-pagination-previous-label}}</small>

      <a class="post-pagination-link" href="{{tpl:EntryURL}}" rel=prev>{{tpl:EntryTitle}}</a>
    </div>
  </tpl:EntryPrevious>

  <tpl:EntryNext>
    <div class=post-pagination-next>
      <small class=post-pagination-title>{{tpl:lang post-pagination-next-label}}</small>

      <a class="post-pagination-link" href="{{tpl:EntryURL}}" rel=next>{{tpl:EntryTitle}}</a>
    </div>
  </tpl:EntryNext>
</div>

{{tpl:include src="_comments.html"}}
