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

gallery.html « content-type « partials « layouts - github.com/Lednerb/bilberry-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76ba4a31720d7e7b7f98a14bf8badc400f7c5697 (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
<a class="bubble" href="{{ .ctx.Permalink }}">
    <i class="fas fa-fw {{ or .ctx.Params.icon "fa-camera" }}"></i>
</a>

<article class="gallery">
    {{ if and (isset .ctx.Params "gallery") (ne .ctx.Params.gallery "") }}
        <div class="flexslider">
            <ul class="slides">
                {{ range .ctx.Params.gallery }}
                    <li><img src="{{ . | relURL }}" /></li>
                {{ end }}
            </ul>
        </div>
    {{ else if ne .ctx.Params.imageSlider false }}
        <div class="flexslider">
            <ul class="slides">
                {{ if and (.ctx.Site.Params.resizeImages | default true) (.ctx.Params.resizeImages | default true) }}
                    {{ range .ctx.Resources.ByType "image" }}
                        <li><img src="{{ (.Fill "700x350 q95").RelPermalink }}" /></li>
                    {{ end }}
                {{ else }}
                    {{ range .ctx.Resources.ByType "image" }}
                        <li><img src="{{ .RelPermalink }}" /></li>
                    {{ end }}
                {{ end }}
            </ul>
        </div>
    {{ else}}
        {{ partial "featured-image.html" .ctx }}
    {{ end }}

    {{ partial "default-content.html" (dict "ctx" .ctx "template_type" .template_type) }}
    {{ partial "article-footer.html" .ctx }}
</article>