Hardcode thumbnail name
This commit is contained in:
@@ -8,9 +8,8 @@
|
||||
<a href="{{ .RelPermalink }}" class="subalbum">
|
||||
<div class="teaser">
|
||||
{{ $sa := . }}
|
||||
{{ with .Params.teaserImage }}
|
||||
{{ $img := $sa.Resources.Get . }}
|
||||
<img src="{{ ($img.Fit "300x200 webm").RelPermalink }}" alt="{{ $sa.Title }}">
|
||||
{{ with .Resources.Get "thumbnail.jpg" }}
|
||||
<img src="{{ (.Fit "300x200 webm").RelPermalink }}" alt="{{ $sa.Title }}">
|
||||
{{ else }}
|
||||
{{ warnf "Could not find teaser image for %s" .RelPermalink }}
|
||||
<img src="{{ (resources.Get "img/no-image.png").RelPermalink }}">
|
||||
|
||||
Reference in New Issue
Block a user