{# /** * @file * Theme override to display a taxonomy term. * * Available variables: * - url: URL of the current term. * - name: (optional) Name of the current term. * - content: Items for the content of the term (fields and description). * Use 'content' to print them all, or print a subset such as * 'content.description'. Use the following code to exclude the * printing of a given child element: * @code * {{ content|without('description') }} * @endcode * - attributes: HTML attributes for the wrapper. * - page: Flag for the full page state. * - term: The taxonomy term entity, including: * - id: The ID of the taxonomy term. * - bundle: Machine name of the current vocabulary. * - view_mode: View mode, e.g. 'full', 'teaser', etc. * - site_color: Site landing page color. * - team_members: The team members of the current site: * - name: The name of the person. * - description: The description of the person. * - photo: The image field value of the photo plus the 'uri' and 'url'. * - projects: A list of renderable project teasers. * - explore_block: The content of the export block. * - text: The text HTML. * - links: The link field values of links. * * @see template_preprocess_taxonomy_term() */ #} {{ title_prefix }} {% if name and not page %}

{{ name }}

{% endif %} {{ title_suffix }} {{ content }} {# Projects. #} {% if projects %}

Projects

{% for project in projects %} {{ project }} {% endfor %}
{% endif %} {# Explore. #} {% if explore_block %}

Explore

{% if explore_block['text'] %} {{ explore_block['text']|raw }} {% endif %} {% if explore_block['links'] %}

{% for explore_link in explore_block['links'] %} {{ link(explore_link['title'], explore_link['uri'], {'class': ['button', 'button-light', 'mr-2']}) }} {% endfor %}

{% endif %}
{% endif %} {# Team. #} {% if team_members %} {% import '@siteandspace/misc/macros.twig' as commonMacros %}

Team

{% for member in team_members %} {{ commonMacros.person_block(member, site_color) }} {% endfor %}
{% endif %}