{% load i18n %}

{% comment %}
context:
- more_link_text, eg "View Projects" or "View Stories"
- more_link_url, a link to full listing of projects or stories
- objects, a list of dicts with keys:
    title
    author
    date
    image_html
    excerpt
    url
    
{% endcomment %}
<ul class="slides">
    {% for object in objects %}
    <li>
        <div class="image">
            {{ object.image_html|safe }}
        </div>
        <div class="text">
            <h5><a href="{{ object.url }}" title="{{ object.title }}">{{ object.title }}</a></h5>
            <p class="byline">{% if object.author %}<span class="author">{{ object.author }}</span> {% endif %}<span class="date">{{ object.date|date:"F j, Y" }}</span></p>
            <p>{{ object.excerpt }}</p>
            <p class="more"><a href="{{ more_link_url }}">{{ more_link_text }}</a></p>
        </div>
    </li>
    {% endfor %}
</ul>

{% load i18n %}

{% comment %}
context:
- more_link_text, eg "View Projects" or "View Stories"
- more_link_url, a link to full listing of projects or stories
- objects, a list of dicts with keys:
    title
    author
    date
    image_html
    excerpt
    url
    
{% endcomment %}
<ul class="slides">
    {% for object in objects %}
    <li>
        <div class="image">
            {{ object.image_html|safe }}
        </div>
        <div class="text">
            <h5><a href="{{ object.url }}" title="{{ object.title }}">{{ object.title }}</a></h5>
            <p class="byline">{% if object.author %}<span class="author">{{ object.author }}</span> {% endif %}<span class="date">{{ object.date|date:"F j, Y" }}</span></p>
            <div class="excerpt">{{ object.excerpt|safe }}</div>
            <p class="more"><a href="{{ more_link_url }}">{{ more_link_text }}</a></p>
        </div>
    </li>
    {% endfor %}
</ul>

Allow markup in story summaries on homepage
Allow markup in story summaries on homepage

Closes #424
