diff --git a/docs/_includes/components/site_nav.html b/docs/_includes/components/site_nav.html index 55c52e59e..dac399b6d 100644 --- a/docs/_includes/components/site_nav.html +++ b/docs/_includes/components/site_nav.html @@ -1,9 +1,10 @@ {%- comment -%} - Include as: {%- include_cached components/site_nav.html -%} + Include as: {%- include_cached components/site_nav.html all=bool -%} Depends on: site. - Results in: HTML for the site-nav. + Results in: cached HTML for the main navigation when `all` is nil or false; + includes links to pages excluded from the main navigation when `all` is true. Includes: - components/nav.html + components/nav/pages.html Overwrites: pages_top_size, collections_size, collection_entry, collection_key, collection_value, collection. @@ -23,8 +24,24 @@ {% if pages_top_size > 0 %} - {% include components/nav.html pages=site.html_pages %} + {% include components/nav/pages.html pages=site.html_pages all=include.all %} {% endif %} + {%- if site.nav_external_links -%} +
+ {%- endif -%} {% if site.just_the_docs.collections %} {% assign collections_size = site.just_the_docs.collections | size %} {% for collection_entry in site.just_the_docs.collections %} @@ -37,20 +54,20 @@ {% else %} - {% include components/nav.html pages=collection %} + {% include components/nav/pages.html pages=collection all=include.all %} {% endif %} {% else %} - {% include components/nav.html pages=collection %} + {% include components/nav/pages.html pages=collection all=include.all %} {% endif %} {% endif %} {% endfor %} @@ -71,4 +88,8 @@ {%- endfor -%} {%- endif -%} - \ No newline at end of file + + +{% if site.nav_error_report %} +{{ nav_error_report }} +{%- endif %} \ No newline at end of file