|
@@ -8,12 +8,12 @@
|
|
|
{{ if .Scratch.Get "image" }}
|
|
|
<div>
|
|
|
<a href="{{ .Permalink }}">
|
|
|
- {{ $img_src := urls.Parse .Scratch.Get "image" }}
|
|
|
+ {{ $img_src := urls.Parse (.Scratch.Get "image") }}
|
|
|
{{ if $img_src.Scheme }}
|
|
|
<img src="{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
|
|
{{ else }}
|
|
|
<img src="{{ "/img/" | relURL }}{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
|
|
- {{ end }}
|
|
|
+ {{ end }}
|
|
|
</a>
|
|
|
</div>
|
|
|
{{ end }}
|