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

features-single.html « home-page-sections « partials « layouts - github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f12832a79b34966fa992d96288b9497e1a1bf2e (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
39
40
41
42
{{ if .Params.sections }}
  {{ range $i, $e := .Params.sections }}
    {{ $i = add $i 1 }}
    <section
      class="w-full  ph4 sm:px-5 py-4 sm:py-10 text-gray-900 {{ .color_classes }}">
      <div class="sm:flex flex-wrap mx-auto max-w-6xl">
        <div
          class="w-full lg:w-1/2 {{ if modBool $i 2 }}
            order-1
          {{ else }}
            order-0
          {{ end }}">
          <div class="sm:w-11/12 mx-auto">
            <img
              src="{{ .image }}"
              alt="image depicting an example of {{ .heading }}"
              class="img shadow-lg" />
          </div>
        </div>
        <div class="w-full lg:w-1/2">
          <div class="sm:w-4/5 mx-auto text-center">
            <h3
              class="text-5xl leading-tight font-bold tracking-tighter m-0 py-4">
              {{ .heading }}
            </h3>
            <p class="text-2xl text-gray-500 font-medium">
              {{ .copy }}
            </p>
            <p class="text-xl leading-normal mt-4">
              <a
                href="{{ .link | absURL }}"
                class="link text-black dim inline-flex items-center">
                <span class="mr-2">{{ .cta }}</span>
                {{ partial "svg/link-ext.svg" (dict "fill" "#333" "size" "14") }}
              </a>
            </p>
          </div>
        </div>
      </div>
    </section>
  {{ end }}
{{ end }}