blob: 8bce904998212a3a78425d740e4537901978150c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!-- Posts -->
{{ $data := .siteData }}
<section class="posts">
{{ range .posts.Pages }}
<article>
<header>
{{ if not .Date.IsZero }}
<span class="date">{{ .Date.Format "January 2, 2006" }}</span>
{{ end }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</header>
{{ if .Params.image }}
<a href="{{ .Permalink }}" class="image fit"><img src="{{ .Params.image | relURL }}" alt="" /></a>
{{ end }}
<p>{{ .Description }}</p>
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button">{{ $data.post.linktext }}</a></li>
</ul>
</article>
{{ end }}
</section>
|