blob: 3a1a248e0d8603a30a49ee720e4aa7b135525e9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{{ if and (isset .Params "featuredpath") (ne .Params.featuredpath "") }}
{{ $.Scratch.Set "path" .Params.featuredpath }}
{{ if and (isset .Params "featured") (ne .Params.featuredpath "") }}
{{ $.Scratch.Set "structType" "page" }}
{{ partial "img-path" . }}
{{ $path := $.Scratch.Get "path" }}
<div>
<a href="{{ .Permalink }}" class="image featured">
<img src="{{ $path }}/{{ .Params.featured }}" alt="" />
</a>
</div>
{{ end }}
{{ end }}
|