aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/articles/list.html
blob: 8db3f263cec7be25371e61516f92605ef40bdbbf (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
{{- define "title" -}}
  Articles
{{- end -}}

{{- define "main" -}}
  <div class='container'>
    <div class='section is-small'>
      <h1 class='title' title='{{.Title}}' aria-label='{{.Title}}'>
        Articles
      </h1>

      <div class='content'>
        <ul>
          {{- range .Pages -}}
            {{- if default true .Params.show -}}
              <li>
                <a
                  href='{{.Permalink}}'
                  title='{{.Title}}'
                  aria-label='{{.Title}}'
                >
                  {{- .Title -}}
                </a>
              </li>
            {{- end -}}
          {{- end -}}
        </ul>
      </div><!-- content -->
    </div><!-- section -->
  </div><!-- container -->
{{- end -}}