diff --git a/_includes/nav.html b/_includes/nav.html index 19a69e4..93ab7be 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -183,15 +183,17 @@ {%- endunless -%} {%- endfor -%} -{%- assign nav_external_links = site.nav_external_links -%} -{%- for node in nav_external_links -%} - -{%- endfor -%} +{%- unless include.key -%} + {%- assign nav_external_links = site.nav_external_links -%} + {%- for node in nav_external_links -%} + + {%- endfor -%} +{%- endunless -%} {%- comment -%} diff --git a/docs/navigation-structure.md b/docs/navigation-structure.md index d127369..badae37 100644 --- a/docs/navigation-structure.md +++ b/docs/navigation-structure.md @@ -252,10 +252,9 @@ aux_links: ## External Navigation Links To add external links to the navigation, add them to the `nav_external_links` [configuration]({{ site.baseurl }}{% link docs/configuration.md %}) option in your site's `_config.yml` file. -External links will appear under all other items in the listing order. +External links will appear in the navigation after the links to ordinary pages, but before any collections. #### Example - {: .no_toc } ```yaml @@ -266,6 +265,9 @@ nav_external_links: hide_icon: false # set to true to hide the external link icon - defaults to false ``` +The external links are decorated by an icon, which distinguishes them from internal links. +You can suppress the icon by setting `hide_icon: true`. + --- ## In-page navigation with Table of Contents