Commit ef38eebf authored by James Wilson's avatar James Wilson
Browse files

Issue #3284338 by jwilson3: Hide section nav if content empty

parent 9e63ae21
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -4,10 +4,7 @@
 * Override the system menu block to match IU Framework expectations.
 */
 #}
{% set hasContent = FALSE %}
{% for key, child in element if key|first != '#' %}
  {% set hasContent = TRUE %}
{% endfor %}
{% set hasContent = content['#items'] %}
{% if hasContent %}
<nav{{ attributes }} role="navigation" aria-label=" {{ 'Section navigation'|t }}" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
  {{ title_prefix }}{{ title_suffix }}