blob: 1a783ed0ef6e6f57e8369a2456018f7c74423160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{{ partial "head" . }}
<body class="template template--home">
<section class="header-wrapper">
{{ partial "header" . }}
{{ partial "navigation" . }}
</section>
<main class="content" role="main" id="main-content">
<h1>Yay!</h1>
{{ $baseurl := .Site.BaseURL }}
{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") 3 }}
{{ range $paginator.Pages }}
<article class="post post--preview">
<header>
<h2 class="post__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</header>
<footer class="post__meta">
<ul class="post__meta__infos">
<li class="post-meta__date"><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02 January 2006" }}</time></li>
</ul>
<ul class="post__meta__tags">
{{ range .Params.tags }}
<li><a href="{{ $baseurl }}tags/{{ . }}">{{ . }} </a></li>
{{ end }}
</ul>
</footer>
<section class="post__excerpt">
<p>{{ .Summary }}…</p>
{{ if .Truncated }}
<p class="readmore"><a href="{{ .Permalink }}">Read More…</a></p>
{{ end }}
</section>
</article>
{{ end }}
</main>
{{ partial "footer" . }}
{{ partial "js" . }}
</body>
</html>
|