- 2.1: packs/ -> archive/packs/ - 2.2: site/ -> archive/site/ - 2.3: src/lab/ -> archive/lab/ - 2.4: examples/ -> archive/examples-legacy/ (SSI-based)
39 lines
880 B
HTML
39 lines
880 B
HTML
{{ define "main" }}
|
|
<section>
|
|
<header>
|
|
<h1>{{ .Title }}</h1>
|
|
{{- with .Description }}<p>{{ . }}</p>{{- end }}
|
|
</header>
|
|
|
|
{{- if .IsHome }}
|
|
{{- partial "tag-nav.html" . }}
|
|
{{- end }}
|
|
|
|
<section data-layout="grid">
|
|
{{- range .Pages }}
|
|
<article>
|
|
<header>
|
|
<h3>
|
|
<a href="{{ .RelPermalink }}" data-wikilink>{{ .Title }}</a>
|
|
</h3>
|
|
{{- if not .Date.IsZero }}
|
|
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
|
{{- end }}
|
|
</header>
|
|
|
|
{{- with .Summary }}
|
|
<p>{{ . }}</p>
|
|
{{- end }}
|
|
|
|
{{- with .GetTerms "tags" }}
|
|
<footer>
|
|
{{- range . }}
|
|
<a href="{{ .Permalink }}" data-tag="{{ .Name }}">{{ .Name }}</a>
|
|
{{- end }}
|
|
</footer>
|
|
{{- end }}
|
|
</article>
|
|
{{- end }}
|
|
</section>
|
|
</section>
|
|
{{ end }}
|