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/partials/home/projects.html')
-rw-r--r--layouts/partials/home/projects.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html
index ea85a4d..e197e38 100644
--- a/layouts/partials/home/projects.html
+++ b/layouts/partials/home/projects.html
@@ -18,6 +18,7 @@
{{ end}}
<div class="column {{ $columWidth }}">
<div class="card" data-target="#project-{{ $index }}">
+ {{ if .Resources.ByType "image" }}
<div class="card-image">
<figure class="image is-3by2">
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
@@ -30,6 +31,7 @@
</a>
</figure>
</div>
+ {{ end }}
<div class="card-content has-text-centered top-pad">
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
{{ .Title | markdownify }}