camp/content/templates/text.html

36 lines
880 B
HTML
Raw Normal View History

2017-08-03 17:44:00 +00:00
{% extends 'base.html' %}
{% block content %}
{% for content in content %}
{% if forloop.first %}
<div class="large-8 medium-8 columns special-column">
2017-12-18 12:54:04 +00:00
{% if content.image %}
<img src="{{content.image_url }}">
{% endif %}
2017-08-03 17:44:00 +00:00
<div class="index-text">
2017-12-18 12:54:04 +00:00
<h4><a href="{{ content.get_absolute_url }}/" class="big-title">{{content.title}} </a></h4>
2017-08-03 17:44:00 +00:00
<p> {{content.header|striptags}} </p>
<p> {{content.body|striptags}} </p>
</div>
{% endif %}
{% endfor %}
</div>
<div class="large-4 medium-4 columns">
<h4 class="sidebar-h4"> Texts </h4>
<div class="row">
{% for content in content %}
<div class="row right-items">
2017-12-18 12:54:04 +00:00
<a href="{{ content.get_absolute_url }}" class="sidebar-title">{{ content.title }}</a>
2017-08-03 17:44:00 +00:00
<p> {{content.header|striptags|truncatechars:100}} </p>
</div>
{% endfor %}
</div>
</div>
2017-12-18 12:54:04 +00:00
{% endblock %}