aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/articles/single.html
blob: 76d5c0044e751ca527c09eca92fca1dd14be8415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{- 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 -}}

      <div class='content'>
        {{- .Content -}}
      </div><!-- content -->
    </div><!-- section -->
  </div><!-- container -->
{{- end -}}