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

github.com/themefisher/bigspring-hugo-startup-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.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2e03aeb..91acbea 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -11,9 +11,11 @@
{{ range first 1 (where .Data.Pages "Type" "featured") }}
<div class="col-12 mb-5 pb-5">
<div class="row align-items-center">
+ {{ if .Params.image }}
<div class="col-md-6 mb-4 mb-md-0">
<img src="{{ .Params.image | relURL }}" alt="{{.Title}}" class="img-fluid rounded-lg w-100">
</div>
+ {{ end }}
<div class="col-md-6">
<h2><a href="{{ .Permalink }}" title="{{ .Title }}" class="post-title">{{ .Title }}</a></h2>
<p class="card-text">{{ .Summary }}</p>
@@ -26,7 +28,9 @@
{{ range $paginator.Pages }}
<div class="col-lg-4 col-sm-6 mb-5">
<div class="card border-0">
+ {{ if .Params.image }}
<img src="{{ .Params.image |relURL }}" alt="{{ .Title }}" class="card-img rounded-lg mb-4">
+ {{ end }}
<div class="card-body p-0">
<h3><a href="{{ .Permalink }}" title="{{ .Title }}" class="post-title">{{ .Title }}</a></h3>
<p class="card-text">{{ .Summary }}</p>