apps/posts/starters/index.html 462 B raw
1
{{if .IntroHTML}}
2
<article class="intro markdown-body">
3
  {{.IntroHTML}}
4
</article>
5
{{end}}
6
{{if not .Posts}}
7
<p class="empty">no posts yet</p>
8
{{end}}
9
<div class="post-list">
10
  {{range .Posts}}
11
  <a href="/posts/{{.Slug}}" class="post-item">
12
    <div class="post-item-info">
13
      <span class="post-title">{{.DisplayTitle}}</span>
14
    </div>
15
    {{if .PublishedDate}}
16
    <time class="post-date">{{.PublishedDateStr}}</time>
17
    {{end}}
18
  </a>
19
  {{end}}
20
</div>