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

single.html « _default « layouts - github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 551431e68ca5601babd22adc20695e9c95733a30 (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 "content" }}

    {{ $logos := .Resources.Match "logos/*" }}
    {{ if gt (len $logos) 0 }}
        <ul class="logos-list" aria-hidden="true">
            {{ range $logos }}
                {{ if eq .ResourceType "image" }}
                    {{ $image := .Fit "64x64"  }}
                    <li>
                        <figure class="no-photoswipe">
                            <img class="logo" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
                        </figure>
                    </li>
                {{ end }}
            {{ end }}
        </ul>
    {{ end }}

    {{ with .Content}}
        <div>
        {{ . | markdownify }}
        <hr>
        </div>
    {{ end }}

    {{ $images_directory := .Params.images_directory | default "images" }}
    {{ $images_static := .Params.images_static | default "false" }}
    {{ $images_copyright := .Params.images_copyright }}
    {{ $images_params := .Params.images }}
    {{ partial "gallery.html" (dict "page" . "dir" $images_directory "static" $images_static "images_params" $images_params "images_copyright" $images_copyright) }}
    {{ partial "load-photoswipe.html" (dict "page" .) }}

{{ end }}

{{ define "lists" }}
{{ end }}