aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/projects/single.html
blob: 5ea439ad173d6a34560f07b7c1bdce0e66a26dbc (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
{{- define "title" -}}
  {{.Title}}
{{- end -}}

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

      {{- if .Params.repo -}}
        <h3 class='subtitle'>
          <a
            href='{{- .Params.repo -}}'
            title='Go to {{.Slug}} Git repository.'
            aria-label='Go to {{.Slug}} Git repository'
            rel='noopener'
          >
            Git Repository
          </a>
        </h3><!-- subtitle -->
      {{- end -}}

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