{% assign urlParts = page.url | split: '/' %} {% assign activePlatform = urlParts[1] %} {% assign activeHub = urlParts[3] %} {% assign platform = site.data.routes.platforms | where: "href", activePlatform | first %} {% assign hub = platform.hubs | where: "href", activeHub | first %}
{{ hub.description }}
{% assign emptyItems = "" | split: "," %} {% assign hubArticles = hub.articles | default: emptyItems %} {% assign hubSections = hub.sections | default: emptyItems %} {% if hub.articles %} {% assign sortedSectionsAndArticles = hubSections | concat: hubArticles | sort: 'order' %} {% else %} {% assign sortedSectionsAndArticles = hubSections | sort: 'order' %} {% endif%}