aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/articles/single.html
blob: b038be5547b65e8aff8fb75633dd6197db108ad3 (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
34
35
36
37
38
{{- define "title" -}}
  {{.Title}}
{{- end -}}

{{- define "main" -}}
  <div class='container'>
    <div class='section is-small'>
      <h1 class='title' title='{{.Title}}' aria-label='{{.Title}}'>
        {{- .Title -}}
      </h1>
      {{- if .Date -}}
        <h2 class='subtitle' title='article date' aria-label='article date'>
          {{- .Date.Format "January 2, 2006" -}}
        </h2>
      {{- end -}}

      {{- partial "carousel.html" .Params.carousel.top -}}

      <div class='content'>
        {{- if .Params.toc -}}
          <h2
            class='subtitle'
            title='Table of Contents'
            aria-label='Table of Contents'
          >
            Table of Contents
          </h2>

          {{- .TableOfContents -}}
        {{- end -}}

        {{- .Content -}}
      </div><!-- content -->

      {{- partial "carousel.html" .Params.carousel.bottom -}}
    </div><!-- section -->
  </div><!-- container -->
{{- end -}}