blob: a3276479cb85e3dbd7acea967431bc913b145ab2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{ define "main" }}
<article class="row">
<div class="col">
<div class="bs-component">
<h1>{{.Title}}</h1>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</div>
</div>
</article>
<ul class="list-group">
<!-- Ranges through content/posts/*.md -->
{{ range .Data.Pages }}
<li class="list-group-item d-flex justify-content-between align-items-center">
<a href="{{.RelPermalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
<span class="badge badge-primary badge-pill">{{ .Date.Format "2006-01-02" }}</span>
</li>
{{ end }}
</ul>
{{ end }}
|