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: 7fa2910c9ebffd025907e5deee0bf140d8b4ba63 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{{ 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 := .Resources.Match "images/*" }}
    {{ if gt (len $images) 0 }}
        <ul class="images-list" aria-hidden="true">
            {{ range $images }}
                {{ if eq .ResourceType "image" }}
                    {{ $image := .Resize "512x"  }}
                    <li>
                        <figure>
                            <img class="image" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}">
                            {{ with $image.Params.copyright }}
                                <figcaption class="copyright">{{ . | markdownify }}</figcaption>
                            {{ end }}
                        </figure>
                    </li>
                {{ end }}
            {{ end }}
        </ul>
    {{ 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 }}