We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81bd78e commit 95abfebCopy full SHA for 95abfeb
layouts/_default/summary.html
@@ -2,10 +2,14 @@
2
<article class="article">
3
<a class="article__inner" href="{{ .Permalink }}">
4
<div class="article__header">
5
+ {{ if hasPrefix .Params.image "http" }}
6
+ <img class="article__image" src="{{ .Params.image }}">
7
+ {{ else }}
8
{{ $image := resources.Get .Params.image }}
9
{{ if $image }}
10
<img class="article__image" src="{{ $image.RelPermalink }}">
11
{{ end }}
12
+ {{ end }}
13
</div>
14
<div class="article__text">
15
<h3 class="article__title">{{ .Title }}</h3>
0 commit comments