aboutsummaryrefslogtreecommitdiff
path: root/layouts/page/index.html
blob: f71927f85e901770f04f48b0913e13a5773f70a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{define "main"}}
{{ .Content }}
<hr>
<h3>Latest Blog Posts</h3>
<ul>
    {{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }}
    <li>{{.Date.Format "2006-02-01"}} | <a href="{{.Permalink}}">{{.Title}}</a></li>
    {{ end }}
</ul>
<hr>
<h3>Latest Package Changes</h3>
<ul>
    <script src="https://git.carbslinux.org/exports/repository.js"></script>
</ul>
<hr>
<h2>News</h2>
<a href="{{"news/index.xml"|relURL}}">RSS Feed</a> |
<a href="{{"news"|relURL}}">See all news</a>
{{ range first 5 (where .Site.RegularPages.ByDate.Reverse "Section" "news") }}
<h3><a href="{{.Permalink}}">{{.Date.Format "Jan 02, 2006"}}</a></h3>
<p>{{ .Content }}</p>
{{ end }}
{{ end }}