camp/content/templates/featured.html

22 lines
869 B
HTML
Raw Permalink Normal View History

2017-12-18 12:54:04 +00:00
{% for content in featured %}
<div class="large-8 medium-8 columns special-column">
2018-06-10 14:06:27 +00:00
{% if content.image_url %}
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>
2018-06-16 11:57:03 +00:00
{% if content.type.name == 'events' and content.datestart %}
2017-12-18 12:54:04 +00:00
<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 %}