.
This commit is contained in:
parent
6623ee03f6
commit
44c8324063
120 changed files with 22842 additions and 4673 deletions
|
|
@ -1,9 +1,26 @@
|
|||
{{ define "main" }}
|
||||
{{ range first 5 (where .Site.RegularPages "Type" "in" site.Params.mainSections) }}
|
||||
<article>
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<p>{{ .Date.Format "Jan 2, 2006" }}</p>
|
||||
<p>{{ .Summary }}</p>
|
||||
</article>
|
||||
{{ end }}
|
||||
<section class="intro">
|
||||
<p>This is a place to document bits and bobs I've been up to that have interested me. Expect linux and self-hosting tinkering, some novice programming, and maybe the occasional recipe. I tend to be a fool so take anything written here with a pinch of salt :)</p>
|
||||
</section>
|
||||
|
||||
{{ $posts := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
|
||||
<section class="archive">
|
||||
{{ $years := $posts.GroupByDate "2006" }}
|
||||
<ul class="year-list">
|
||||
{{ range $years }}
|
||||
<li>
|
||||
<span class="year">{{ .Key }}</span>
|
||||
<ul class="post-list">
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<time>{{ .Date.Format "Jan 2" }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue