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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 3367f01..eb77cdc 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -4,8 +4,11 @@
<div class="apps-app-item">
<div class="apps-app-icon">
<a href="{{ .URL }}">
- {{ $img := absURL (default "/img/no-image.svg" .Params.img) }}
- <img src="{{ $img }}"/>
+ {{ if or (not (isset .Params "img")) (eq .Params.img "") }}
+ <img src="{{ .Site.BaseURL }}/img/no-image.svg"/>
+ {{ else }}
+ <img src="{{ .Params.img }}"/>
+ {{ end }}
</a>
</div>
<div class="apps-app-name">