forked from rc/aircox
rename summary to headline
This commit is contained in:
@ -29,9 +29,9 @@
|
||||
{% block content %}
|
||||
{% with related=list_selector.filter_related %}
|
||||
{% if related %}
|
||||
<div class="body summary">
|
||||
<div class="body headline">
|
||||
{% image related.cover fill-128x128 class="cover item_cover" %}
|
||||
{{ related.summary }}
|
||||
{{ related.headline }}
|
||||
<a href="{{ related.url }}">{% trans "More about it" %}</a>
|
||||
</div>
|
||||
{% elif page.body %}
|
||||
|
@ -16,9 +16,9 @@
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<section class="summary">
|
||||
{% if page.summary %}
|
||||
{{ page.summary }}
|
||||
<section class="headline">
|
||||
{% if page.headline %}
|
||||
{{ page.headline }}
|
||||
{% else %}
|
||||
{{ page.body|truncatewords:24|richtext }}
|
||||
{% endif %}
|
||||
@ -30,8 +30,8 @@
|
||||
{% block content %}
|
||||
{% if object_list %}
|
||||
{# list view #}
|
||||
<section class="body summary">
|
||||
{{ page.summary }}
|
||||
<section class="body headline">
|
||||
{{ page.headline }}
|
||||
<a href="?" class="go_back float_right">{% trans "Go back to the publication" %}</a>
|
||||
</section>
|
||||
|
||||
|
@ -31,7 +31,7 @@ is just a bit different.
|
||||
<div class="flex_item">
|
||||
<h3 class="title">{{ item.title }}</h3>
|
||||
|
||||
{% if item.summary %}<div class="summary">{{ item.summary }}</div>{% endif %}
|
||||
{% if item.headline %}<div class="headline">{{ item.headline }}</div>{% endif %}
|
||||
|
||||
{% if item.info %}
|
||||
<span class="info">{{ item.info|safe }}</span>
|
||||
|
@ -3,7 +3,7 @@ Configurable item to be put in a list. Support standard Publication or
|
||||
ListItem instance.
|
||||
|
||||
Options:
|
||||
* item: item to render. Fields: title, summary, cover, url, date, info, css_class
|
||||
* item: item to render. Fields: title, headline, cover, url, date, info, css_class
|
||||
* item_date_format: format passed to the date filter instead of default one. If
|
||||
it is an empty string, do not print the date.
|
||||
* item_big_cover: cover should is big instead of thumbnail (width: 600)
|
||||
|
Reference in New Issue
Block a user