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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/projects/list.html')
-rw-r--r--layouts/projects/list.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
index 2180025..9c8dc5e 100644
--- a/layouts/projects/list.html
+++ b/layouts/projects/list.html
@@ -15,6 +15,7 @@
{{ end}}
<div class="column {{ $columWidth }}">
<div class="card">
+ {{ if .Resources.ByType "image" }}
<div class="card-image">
<figure class="image is-3by2">
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{ .Permalink }}{{ end }}">
@@ -27,6 +28,7 @@
</a>
</figure>
</div>
+ {{ end }}
<div class="card-content has-text-centered top-pad">
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{ .Permalink }}{{ end }}">
{{ .Title | markdownify }}