diff options
Diffstat (limited to 'layouts/post/featured.html')
-rw-r--r-- | layouts/post/featured.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/layouts/post/featured.html b/layouts/post/featured.html index 861bfe9..7b7aa42 100644 --- a/layouts/post/featured.html +++ b/layouts/post/featured.html @@ -1,13 +1,13 @@ {{ if and (isset .Params "featuredpath") (ne .Params.featuredpath "") }} - {{ $.Scratch.Set "path" .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" }} + {{ if and (isset .Params "featured") (ne .Params.featuredpath "") }} + {{ $.Scratch.Set "structType" "page" }} + {{ partial "img-path" . }} + {{ $path := $.Scratch.Get "path" }} - <a href="{{ .Permalink }}" class="image featured"> - <img src="{{ $path }}/{{ .Params.featured }}" alt="{{ .Params.featuredalt }}" /> - </a> - {{ end }} + <a href="{{ .Permalink }}" class="image featured"> + <img src="{{ $path }}/{{ .Params.featured }}" alt="{{ .Params.featuredalt }}" /> + </a> + {{ end }} {{ end }} |