| 1 | <h1>Posts</h1> |
| 2 | {{if not .Posts}} |
| 3 | <p class="empty">no posts yet</p> |
| 4 | {{end}} |
| 5 | <div class="post-list"> |
| 6 | {{range .Posts}} |
| 7 | <a href="/posts/{{.Slug}}" class="post-item post-item-enhanced"> |
| 8 | <div class="post-item-info"> |
| 9 | <span class="post-title">{{.DisplayTitle}}</span> |
| 10 | </div> |
| 11 | {{if .PublishedDate}} |
| 12 | <time class="post-date">{{.PublishedDateStr}}</time> |
| 13 | {{end}} |
| 14 | </a> |
| 15 | {{end}} |
| 16 | </div> |