Welcome to mirror list, hosted at ThFree Co, Russian Federation.

archives.html « section « layouts - github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d7506fad0d999048bb3a358537c96f1cf34ee072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{ define "main" }}

{{ .Content }}

{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}

{{ range $pages }}

<div class="post-header archive">
  <div class="post-title">
    {{ if .PublishDate }}
    <strong>{{ .Title }}</strong><span> - </span>

    <a href={{ .Permalink }}>
      <em>{{ .PublishDate.Format "January 2, 2006" }}</em>
    </a>
    {{ else }}
    <a href={{ .Permalink }}>
      <em>{{ .Title }}</em>
    </a>
    {{ end }}
  </div>
  <div class="post-tags">
    {{ range .Params.Tags}}
    <a href="/tags/{{ . }}">{{ . | urlize}}</a>
    {{ end }}
  </div>
</div>
<hr />

{{ end }}

{{ end }}