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: 566fdf7d26ed1a01a52420192032ad6e8cf89f96 (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
55
56
57
58
59
{{ 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 }}
*/}}
{{/*
- "dir" .Params.images_directory
  => if not defined: "images"
- "static" .Params.images_static
  => if not defined: N/A
- "thumb" .Params.images_thumb_suffix
  => if not defined: N/A
...
*/}}
{{ partial "gallery.html" (dict "page" . "dir" "images") }}
{{ partial "load-photoswipe.html" (dict "page" .) }}
{{ end }}

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