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

home-footage.html « page « partials « layouts - github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7cc7a60fdb0f7d9ba0466a7eb793fba74e5349fc (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
<main class="home">
    {{ with or .Site.Params.homeVideoWebm .Site.Params.homeVideoMp4 }}
        <video poster="{{ $.Site.Params.homePoster }}" id="bgvid" playsinline autoplay muted loop>
            {{ with $.Site.Params.homeVideoWebm }}
                <source src="{{ . }}" type="video/webm" />
            {{ end }}
            {{ with $.Site.Params.homeVideoMp4 }}
                <source src="{{ . }}" type="video/mp4" />
            {{ end }}
        </video>
    {{ end }}
    <div class="main-inner">
        <div class="content">
            <a href="{{ .Site.Params.homeLogoLink }}">
                <img src="{{ .Site.Params.homeLogo }}" class="avatar" />
            </a>
            <h1>{{ .Site.Params.homeTitle }}</h1>
            <div class="motto">{{ .Site.Params.homeMotto }}</div>
            <hr>
            <div class="description">{{ .Site.Params.homeDescription }}</div>
            <div class="keywords">{{ .Site.Params.homeKeywords }}</div>
        </div>
        <div class="links">
            {{ $length := sub (len .Site.Menus.home) 1 }}
            {{ range $index, $value := .Site.Menus.home }}
                {{- $linkType := (string .Pre) -}}
                {{- $iconName := (string .Post) -}}
                {{- $icon := (index $.Site.Data.SVG $iconName) -}}
                <a href="{{ .URL }}"{{ if eq $linkType "external" }} target="_blank" rel="external"{{ end }}>{{ replace $icon "icon" (printf `icon %s` .Identifier) | safeHTML }}{{ .Name }}</a>
                {{- if lt $index $length -}}
                    {{- $.Site.Params.homeLinksDelimiter -}}
                {{- end -}}
            {{ end }}
        </div>
    </div>
</main>