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

index.html « layouts - github.com/jonathanjanssens/hugo-casper3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3cc78987ab1b6e71320f15864d197cb5aee1e423 (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
{{ define "body_class" }} home-template {{ end }}

{{ define "main" }}

<header class="site-home-header">
    {{ .Scratch.Set "background" .Params.feature_image }}
    {{- partial "header-background.html" . -}}
        <div class="inner">
            {{- partial "site-nav.html" . -}}
            <div class="site-header-content">
                <h1 class="site-title">
                    {{ if $.Site.Params.logo }}
                        <img class="site-logo" src="{{ $.Site.Params.logo }}" alt="{{ .Site.Title }}" />
                    {{ else }}
                        {{ $.Site.Title }}
                    {{ end }}
                </h1>
                <h2 class="site-description">{{ $.Site.Params.description }}</h2>

            </div>
        </div>
    </div>
</header>

<main id="site-main" class="site-main outer">
    <div class="inner posts">
        <div class="post-feed">
            {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
            {{ range $index, $element := $pages }}
                {{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
            {{ end }}
        </div>
    </div>
</main>

{{ end }}