static pages main_image is optional

This commit is contained in:
Sanj 2011-12-29 17:46:02 +05:30
parent 759dd2736b
commit 41597d6461

View File

@ -78,7 +78,9 @@
<div id="searchContainer">
<div id="searchContent">
<p class="staticTitle">{{ page.title }}</p>
{% 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 -->