{%- set class = "md-tabs" -%} {%- if page.ancestors | length > 0 -%} {%- set class = "md-tabs md-tabs--active" -%} {%- endif -%}