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

home-landing.html « landing « main « partials « layouts - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0277dfb46c2b2ef0a436ed5d7729958fbd4b6471 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{{ with .Params.landing }}
{{ $landing := . }}
<div class="divider">
  <div class="lmr">
    {{ with .backgroundImage }}
      <div style="background-image: url('{{ .src | relURL }}'); background-position: center; background-repeat: no-repeat; background-size: cover; position: absolute; top: -50px; left: 0; width: 100%; height: {{ .height }}px;"></div>
    {{ end }}
    <div class="home__landing">
      {{ if .image }}
        <div class="home__landing--img">
          <img src="{{ .image | relURL }}" alt="Site Landing Page image">
        </div>
        <div class="home__landing--txt">
          {{ if .title }}
            {{ range .title }}
              <div class="title" style="{{ with $landing.titleColor }}color:{{ . }}{{ end }};">
                {{ . }}
              </div>
            {{ end }}
          {{ end }}
            {{ if .spaceBetweenTitleText }}
              <div style="height: {{ .spaceBetweenTitleText }}px"></div>
            {{ end }}
          {{ if .text }}
            {{ range .text }}
              <div class="text" style="{{ with $landing.textColor }}color:{{ . }}{{ end }};">
                {{ . }}
              </div>
            {{ end }}
          {{ end }}

          {{ range .buttons }}
            <a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
              <button class="button home__landing--btn" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
                {{ .text }}
              </button>
            </a>
          {{ end }}
        </div>
      {{ else }}
        <div class="home__landing--txt">
          {{ if .title }}
            {{ range .title }}
            <div class="title" style="{{ with $landing.titleColor }}color:{{ . }}{{ end }};">
              {{ . }}
            </div>
            {{ end }}
          {{ end }}
            {{ if .spaceBetweenTitleText }}
              <div style="height: {{ .spaceBetweenTitleText }}px"></div>
            {{ end }}
          {{ if .text }}
            {{ range .text }}
              <div class="text" style="{{ with $landing.textColor }}color:{{ . }}{{ end }};">
                {{ . }}
              </div>
            {{ end }}
          {{ end }}
        </div>
        <div class="flexcolumn">
          {{ range .buttons }}
            <a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
              <button class="button home__landing--btn2" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
                {{ .text }}
              </button>
            </a>
          {{ end }}
        </div>
      {{ end }}
    </div>
  </div>
</div>
{{ end }}