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

blog-header-text.html « header « partials « layouts - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe352e176e43d161de0739de886d74b66c636968 (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
{{ if .Params.header }}
  {{ range .Params.header }}
    {{ if eq .type "text" }}
    <div class="blog-header blog-header__align-{{ .align }}" style="width: 100%; height: {{ $.Param "headerHeight" | default 112 }}px;">
      {{ $header := . }}
      {{ if .title }}
        {{ range .title }}
        <div class="blog-header__title" style="font-size: {{ $header.titleFontSize }}px; {{ with $header.titleColor }}color:{{ . }}{{ end }};">
          {{ . }}
        </div>
        {{ end }}      
      {{ end }}
      {{ if .spaceBetweenTitleSubtitle }}
        <div style="height: {{ .spaceBetweenTitleSubtitle }}px"></div>
      {{ end }}
      {{ if .subtitle }}
        {{ range .subtitle }} 
        <div class="blog-header__subtitle" style="font-size: {{ $header.subtitleFontSize }}px; {{ with $header.subtitleColor }}color:{{ . }}{{ end }}" data-cursive="{{ with $header.subtitleCursive }}{{ . }}{{ end }}">
          {{ . }}
        </div>
        {{ end }}      
      {{ end }}
    </div>
    {{ end }}
  {{ end }}
{{ end }}