You are here

sitemap-frontpage-item.html.twig in Sitemap 2.0.x

Same filename and directory in other branches
  1. 8.2 templates/sitemap-frontpage-item.html.twig

Theme implementation to display the frontpage content in the sitemap.

Available variables:

  • text: The text for the front page link.
  • url: The URL for the front page.
  • feed: The URL for the site's feed, if provided.
  • feed_icon: The icon to display for the RSS feed's link.

File

templates/sitemap-frontpage-item.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation to display the frontpage content in the sitemap.
  5. *
  6. * Available variables:
  7. * - text: The text for the front page link.
  8. * - url: The URL for the front page.
  9. * - feed: The URL for the site's feed, if provided.
  10. * - feed_icon: The icon to display for the RSS feed's link.
  11. *
  12. * @see template_preprocess_sitemap_frontpage_item()
  13. */
  14. #}
  15. {% if url %}<a href="{{ url }}">{% endif %}{{ text }}{% if url %}</a>{% endif %} {% if feed and feed_icon %}<a href="{{ feed }}">{{ feed_icon }}</a>{% endif %}