static pages main_image is optional
This commit is contained in:
parent
759dd2736b
commit
41597d6461
|
@ -78,7 +78,9 @@
|
|||
<div id="searchContainer">
|
||||
<div id="searchContent">
|
||||
<p class="staticTitle">{{ page.title }}</p>
|
||||
<img src="{{ page.main_image.url }} " alt="{{ page.title }}" width="300" class="staticImg">
|
||||
{% if page.main_image %}
|
||||
<img src="{{ page.main_image.url }} " alt="{{ page.title }}" width="300" class="staticImg">
|
||||
{% endif %}
|
||||
<div class="markdownText">{{ page.text|markdown }}</div>
|
||||
|
||||
</div><!-- SEARCH CONTENT CLOSING -->
|
||||
|
|
Loading…
Reference in New Issue
Block a user