porcellis.com

ref: master

layouts/_partials/dispatch-entry.html


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{{ $p := .page }}
{{ $no := index .nums $p.TranslationKey | default 0 }}
{{ $time := $p.Date.Format "15:04" }}
<article class="dispatch">
  <div class="dispatch__meta">
    <span>{{ partial "time.html" $p }}{{ if ne $time "00:00" }} // {{ $time }} {{ $p.Site.Params.timeZoneLabel }}{{ end }} // {{ $p.WordCount }} {{ i18n "words" }}</span>
    <span class="dispatch__no">#{{ printf "%03d" $no }}</span>
  </div>

  <h2 class="dispatch__title">
    <a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
  </h2>

  <div class="dispatch__blurb">{{ $p.Summary }}</div>

  <a class="dispatch__link" href="{{ $p.RelPermalink }}">{{ i18n "readDispatch" }}</a>
</article>