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

github.com/dewittn/hugo-html5up-alpha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 7e07280..db5a2d3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -34,7 +34,9 @@
<h2>{{ .header | safeHTML }}</h2>
<p>{{ .content | safeHTML }}</p>
</header>
- <span class="image featured"><img src="{{ .image }}" alt="" /></span>
+ {{ with .image }}
+ <span class="image featured"><img src="{{ . }}" alt="" /></span>
+ {{ end }}
</section>
{{ end }}
{{ end }}