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

github.com/themefisher/twenty-twenty-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 14b2c4f..d662f85 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -56,6 +56,7 @@
</div><!-- .post-meta-wrapper -->
</div><!-- .entry-header-inner -->
</header><!-- .entry-header -->
+ {{if .Params.Image }}
<figure class="featured-media">
<div class="featured-media-inner section-inner medium">
<img width="1200" height="769" src="{{ .Params.Image | absURL }}"
@@ -63,6 +64,7 @@
sizes="(max-width: 1200px) 100vw, 1200px">
</div><!-- .featured-media-inner -->
</figure><!-- .featured-media -->
+ {{end}}
<div class="post-inner thin ">
<div class="entry-content">
{{ .Content }}
@@ -99,4 +101,4 @@
</div><!-- .section-inner -->
</article>
-{{ end }} \ No newline at end of file
+{{ end }}