You are here

aggregator-feed.html.twig in Zircon Profile 8.0

Theme override 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.

File

core/themes/classy/templates/dataset/aggregator-feed.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to present an aggregator feed.
  5. *
  6. * The contents are rendered above feed listings when browsing source feeds.
  7. * For example, "example.com/aggregator/sources/1".
  8. *
  9. * Available variables:
  10. * - title: Title of the feed item.
  11. * - content: All field items. Use {{ content }} to print them all,
  12. * or print a subset such as {{ content.field_example }}. Use
  13. * {{ content|without('field_example') }} to temporarily suppress the printing
  14. * of a given element.
  15. *
  16. * @see template_preprocess_aggregator_feed()
  17. */
  18. #}
  19. <div{{ attributes.addClass('aggregator-feed') }}>
  20. {{ title_prefix }}
  21. {% if not full %}
  22. <h2{{ title_attributes }}>{{ title }}</h2>
  23. {% endif %}
  24. {{ title_suffix }}
  25. {{ content }}
  26. </div>