camp/content/templates/featured.html

22 lines
831 B
HTML
Raw Normal View History

2017-12-18 12:54:04 +00:00
{% for content in featured %}
<div class="large-8 medium-8 columns special-column">
{% if content.image %}
2017-12-22 21:20:19 +00:00
<a href="{{ content.get_absolute_url }}"><img src="{{ content.image_url }}"> </a>
2017-12-18 12:54:04 +00:00
{% endif %}
<div class="index-text">
<h4><a href="{{ content.get_absolute_url }}" class="big-title">{{content.title}} </a></h4>
{% if content.datestart %}
<h6 class="big-date"> <font color="#ef4e5c"> <b> {{ content.datestart }} </b></font>
{% if content.place %}<br/>{{content.place}}{% endif%}
</h6>
{% endif %}
{% if content.header %}
<p> {{content.formatted_header}} </p>
{% else %}
<p> {{content.formatted_body}} </p>
{% endif %}
<a href="{{ content.get_absolute_url }}">read more</a> </p>
</div>
</div>
{% endfor %}