sitemap-frontpage-item.html.twig in Sitemap 2.0.x
Same filename and directory in other branches
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.
See also
1 theme call to sitemap-frontpage-item.html.twig
- Frontpage::view in src/
Plugin/ Sitemap/ Frontpage.php - Builds a renderable array for a sitemap item.
File
templates/sitemap-frontpage-item.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_sitemap_frontpage_item()
- */
- #}
- {% if url %}<a href="{{ url }}">{% endif %}{{ text }}{% if url %}</a>{% endif %} {% if feed and feed_icon %}<a href="{{ feed }}">{{ feed_icon }}</a>{% endif %}