diff --git a/docs/_includes/hub.html b/docs/_includes/hub.html index cac0eaeec382..32d81d88e981 100644 --- a/docs/_includes/hub.html +++ b/docs/_includes/hub.html @@ -4,20 +4,19 @@ {% assign activeHub = page.url | remove: activePlatform | remove: "/hubs/" | remove: "/" | remove: ".html" %} {% assign hub = platform.hubs | where: "href", activeHub | first %} -

- {{ hub.title }} -

+

{{ hub.title }}

-

- {{ hub.description }} -

+

{{ hub.description }}

-{% assign sortedSectionsAndArticles = hub.sections | concat: hub.articles | sort: 'title' %} +{% if hub.articles %} + {% assign sortedSectionsAndArticles = hub.sections | concat: hub.articles | sort: 'title' %} +{% else %} + {% assign sortedSectionsAndArticles = hub.sections | sort: 'title' %} +{% endif%}
{% for item in sortedSectionsAndArticles %} - {% if item.articles %} {% include section-card.html platform=activePlatform hub=hub.href section=item.href title=item.title %} {% else %} diff --git a/docs/_includes/lhn-template.html b/docs/_includes/lhn-template.html index d8298aa22aa7..294094214c8e 100644 --- a/docs/_includes/lhn-template.html +++ b/docs/_includes/lhn-template.html @@ -33,7 +33,11 @@ {{ hub.title }}