You are here

sitemap-taxonomy-term.html.twig in Sitemap 2.0.x

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

Theme implementation to display a taxonomy term in the sitemap.

Available variables:

  • name: The name of the taxonomy term.
  • show_link: Whether or not to display the link for the term.
  • url: The URL for the taxonomy term.
  • show_count: Whether or not to display the number of nodes using the term.
  • count: The number of nodes using this taxonomy term.
  • show_feed: Whether or not to display the RSS feed link for this term.
  • feed: The URL for the taxonomy term's feed, or FALSE if the option to display the feed link is disabled.
  • feed_icon: The icon to display for the RSS feed's link.

File

templates/sitemap-taxonomy-term.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation to display a taxonomy term in the sitemap.
  5. *
  6. * Available variables:
  7. * - name: The name of the taxonomy term.
  8. * - show_link: Whether or not to display the link for the term.
  9. * - url: The URL for the taxonomy term.
  10. * - show_count: Whether or not to display the number of nodes using the term.
  11. * - count: The number of nodes using this taxonomy term.
  12. * - show_feed: Whether or not to display the RSS feed link for this term.
  13. * - feed: The URL for the taxonomy term's feed, or FALSE if the option to
  14. * display the feed link is disabled.
  15. * - feed_icon: The icon to display for the RSS feed's link.
  16. *
  17. * @see template_preprocess_sitemap_taxonomy_term()
  18. */
  19. #}
  20. {% if url and show_link %}<a href="{{ url }}">{% endif %}{{ name }}{% if url and show_link %}</a>{% endif %} {% if show_count %}<span class="count">({{ count }})</span>{% endif %} {% if show_feed and feed and feed_icon %}<a href="{{ feed }}">{{ feed_icon }}</a>{% endif %}