Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bul-ikana/hugo-cards.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/taxonomy/tag.html')
-rw-r--r--layouts/taxonomy/tag.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html
index 8fb638d..7d12b65 100644
--- a/layouts/taxonomy/tag.html
+++ b/layouts/taxonomy/tag.html
@@ -12,7 +12,11 @@
<div class="panel panel-default">
{{ if .Params.img }}
- <img width="100%" src="{{ .Site.BaseURL }}images/{{ .Params.img }}" alt="{{ .Title }}">
+ {{ with .Resources.Match .Params.img }}
+ {{ range . }}
+ <img width="100%" src="{{ .RelPermalink }}" alt="{{ .Title }}">
+ {{ end }}
+ {{ end }}
{{ else }}
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Site.Params.defaultImage }}" alt="{{ .Site.Title }}">
{{ end }}