From a02b7534f21d4f963ace890e80d7bf17e0d5d10f Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Tue, 4 Aug 2020 01:05:42 -0700 Subject: Fix grouping and ordering of website menus Groups subcategories and sorts their pages by weight properly. Subcategories are sorted by name. Pages within subcategories are sorted by weight. PiperOrigin-RevId: 324766128 --- website/_layouts/docs.html | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) (limited to 'website') diff --git a/website/_layouts/docs.html b/website/_layouts/docs.html index 6bc5d87db..0422f9fb0 100644 --- a/website/_layouts/docs.html +++ b/website/_layouts/docs.html @@ -14,30 +14,25 @@ categories: {% for category in layout.categories %}

{{ category }}

- - {% endif %} - {% assign subcategory = p.subcategory %} - {% if subcategory != nil %} - {% assign ac = "aria-controls" %} - {% assign cid = p.category | remove: " " | downcase %} - {% assign sid = p.subcategory | remove: " " | downcase %} -
  • - - + {% endif %} + {% endfor %} {% endfor %} -- cgit v1.2.3