mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-19 20:14:27 +00:00
1 parent
fdfc961f34
commit
0a46c954b1
2 files changed
+4
-4
No files matched your search
@@ -8,12 +8,12 @@
|
|||||||
{{ if .Scratch.Get "image" }}
|
{{ if .Scratch.Get "image" }}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
{{ $img_src := urls.Parse .Scratch.Get "image" }}
|
{{ $img_src := urls.Parse (.Scratch.Get "image") }}
|
||||||
{{ if $img_src.Scheme }}
|
{{ if $img_src.Scheme }}
|
||||||
<img src="{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
<img src="{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<img src="{{ "/img/" | relURL }}{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
<img src="{{ "/img/" | relURL }}{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -8,12 +8,12 @@
|
|||||||
{{ if .Scratch.Get "image" }}
|
{{ if .Scratch.Get "image" }}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
{{ $img_src := urls.Parse .Scratch.Get "image" }}
|
{{ $img_src := urls.Parse (.Scratch.Get "image") }}
|
||||||
{{ if $img_src.Scheme }}
|
{{ if $img_src.Scheme }}
|
||||||
<img src="{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
<img src="{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<img src="{{ "/img/" | relURL }}{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
<img src="{{ "/img/" | relURL }}{{ .Scratch.Get "image" }}" class="article-banner" itemprop="image">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in new issue
Block a user