blob: c0a92ae4abd2150491f96c5cab97942df8c533a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!-- Featured Post -->
{{ $data := .siteData }}
{{ range .firstpost }}
<article class="post featured">
<header class="major">
{{ if not .Date.IsZero }}
<span class="date">{{ .Date.Format (.Site.Params.DateFormat | default "January 2, 2006") }}</span>
{{ end }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ if .Description }}
<p>{{ .Description }}</p>
{{ else }}
<p>{{ .Summary }}</p>
{{ end }}
</header>
{{ if .Params.image }}
<a href="{{ .Permalink }}" class="image main"><img src="{{ .Params.image | relURL }}" alt="" /></a>
{{ end }}
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button big">{{ $data.post.linktext }}</a></li>
</ul>
</article>
{{ end }}
|