diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 4 |
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 }} |