aggregator-feed.html.twig 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{#
/**
 * @file
 * Default theme implementation to present an aggregator feed.
 *
 * The contents are rendered above feed listings when browsing source feeds.
 * For example, "example.com/aggregator/sources/1".
 *
 * Available variables:
 * - title: Title of the feed item.
 * - content: All field items. Use {{ content }} to print them all,
 *   or print a subset such as {{ content.field_example }}. Use
 *   {{ content|without('field_example') }} to temporarily suppress the printing
 *   of a given element.
15 16 17 18 19 20
 * - title_attributes: Same as attributes, except applied to the main title
 *   tag that appears in the template.
 * - title_prefix: Additional output populated by modules, intended to be
 *   displayed in front of the main title tag that appears in the template.
 * - title_suffix: Additional output populated by modules, intended to be
 *   displayed after the main title tag that appears in the template.
21 22 23 24 25 26
 *
 * @see template_preprocess_aggregator_feed()
 *
 * @ingroup themeable
 */
#}
27 28 29 30 31
{{ title_prefix }}
{% if not full %}
  <h2{{ title_attributes }}>{{ title }}</h2>
{% endif %}
{{ title_suffix }}
32

33
{{ content }}