article-list-item.html 594 Bytes
Newer Older
Renon's avatar
Renon committed
1 2 3 4 5 6 7 8 9 10 11 12
<article class="list-item" itemscope itemtype="http://schema.org/Blog">
  <h2 class="headline" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} (Draft){{ end }}</a></h2>
  <div class="meta">
{{ if not .Date.IsZero }}
    <span class="key">publié le</span>
    <span class="val"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02/01/2006" }}</time></span>
{{ end }}
  </div>
  <section class="summary">
    {{ .Summary }} {{ if .Truncated }} <a href="{{ .RelPermalink }}">Lire plus...</a>{{ end }}
  </section>
</article>