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

featured.html « post « layouts - github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8655b3d77cee7cc6d6ad7d83cf2aa23162a5e4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{ if isset .Params "featuredpath" }}
    {{ $.Scratch.Set "path" .Params.featuredpath }}

    {{ if isset .Params "featured" }}
        {{ $.Scratch.Set "structType" "page" }}
        {{ partial "img-path" . }}
        {{ $path := $.Scratch.Get "path" }}

        <a href="{{ .Permalink }}" class="image featured">
            <img src="{{ $path }}/{{ .Params.featured }}" alt="" />
        </a>
    {{ end }}
{{ end }}