~mrls/essential

essential/layouts/tags/list.html -rw-r--r-- 610 bytes
27db479cMauro Morales Add pic archetypes 1 year, 6 months ago
                                                                                
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" }}
<div>
  {{- partial "language.html" . -}}
  {{ with .Title }}<h1>{{ i18n . | default . | humanize }}</h1>{{ end }}
  <hr>
  {{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>

<ul id="content-list">
  {{ if eq (len .Pages) 0 }}
  {{ i18n "noRecordsFound" }}
  {{ end }}
  {{ range .Pages }}
  <li>
    <time class="date-list" datetime="{{ .Date }}">
      {{ dateFormat "2006-01-02" .Date }}
    </time>
    <a href="{{ .RelPermalink }}">{{.Title}}{{ if .Params.Subtitle }}: {{.Params.Subtitle }}{{ end }}</a>
  </li>
  {{ end }}
</ul>
{{- partial "try-in-language.html" . -}}
{{ end }}