Hardcode thumbnail name
This commit is contained in:
parent
9e79b08227
commit
210e2a5170
@ -8,9 +8,8 @@
|
|||||||
<a href="{{ .RelPermalink }}" class="subalbum">
|
<a href="{{ .RelPermalink }}" class="subalbum">
|
||||||
<div class="teaser">
|
<div class="teaser">
|
||||||
{{ $sa := . }}
|
{{ $sa := . }}
|
||||||
{{ with .Params.teaserImage }}
|
{{ with .Resources.Get "thumbnail.jpg" }}
|
||||||
{{ $img := $sa.Resources.Get . }}
|
<img src="{{ (.Fit "300x200 webm").RelPermalink }}" alt="{{ $sa.Title }}">
|
||||||
<img src="{{ ($img.Fit "300x200 webm").RelPermalink }}" alt="{{ $sa.Title }}">
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ warnf "Could not find teaser image for %s" .RelPermalink }}
|
{{ warnf "Could not find teaser image for %s" .RelPermalink }}
|
||||||
<img src="{{ (resources.Get "img/no-image.png").RelPermalink }}">
|
<img src="{{ (resources.Get "img/no-image.png").RelPermalink }}">
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
{{- $first := true -}}
|
{{- $first := true -}}
|
||||||
{{- $filter := images.AutoOrient -}}
|
{{- $filter := images.AutoOrient -}}
|
||||||
{{- $teaser := "" -}}
|
{{- $teaser := .Resources.GetMatch "thumbnail.jpg" -}}
|
||||||
{{- with .Params.teaserImage -}}
|
|
||||||
{{- $teaser = $.Resources.GetMatch . -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- range .Resources.ByType "image" -}}
|
{{- range .Resources.ByType "image" -}}
|
||||||
{{- if not (eq $teaser .) -}}
|
{{- if not (eq $teaser .) -}}
|
||||||
{{- if not $first }}, {{ end }}
|
{{- if not $first }}, {{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user