From 5549a15df9749ab3bfc554f0933fc90865f2fbd8 Mon Sep 17 00:00:00 2001 From: Matthew Wang Date: Tue, 1 Oct 2019 22:22:34 -0700 Subject: [PATCH 01/11] adds option to make aux links open in new tab --- _config.yml | 3 +++ _layouts/default.html | 10 +++++++++- docs/configuration.md | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index a090670..c7dd5ee 100644 --- a/_config.yml +++ b/_config.yml @@ -38,6 +38,9 @@ aux_links: "Just the Docs on GitHub": - "//github.com/pmarsceill/just-the-docs" +# Makes Aux links open in a new tab. Default is false +aux_links_new_tab: false + # Footer content appears at the bottom of every page's main content footer_content: "Copyright © 2017-2019 Patrick Marsceill. Distributed by an MIT license." diff --git a/_layouts/default.html b/_layouts/default.html index b1d3c72..20d3b58 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -43,7 +43,15 @@ layout: table_wrappers {% if site.aux_links != nil %} {% endif %} diff --git a/docs/configuration.md b/docs/configuration.md index eb43a08..e18f75c 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -48,6 +48,9 @@ search_tokenizer_separator: /[\s/]+/ aux_links: "Just the Docs on GitHub": - "//github.com/pmarsceill/just-the-docs" + +# Makes Aux links open in a new tab. Default is false +aux_links_new_tab: false ``` ## Heading anchor links From 102d74c782e4e894334f42158bfe4a5b59b4fa5d Mon Sep 17 00:00:00 2001 From: Kaspar Etter Date: Wed, 16 Oct 2019 17:41:39 +0200 Subject: [PATCH 02/11] Fix duplicate entries in nav.html This commit resolves #207. --- _includes/nav.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/nav.html b/_includes/nav.html index d561a42..dafacc8 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -19,7 +19,7 @@ {%- endif -%} {{ child.title }} {%- if child.has_children -%} - {%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%} + {%- assign grand_children_list = site.html_pages | where: "parent", child.title | where: "grand_parent", node.title | sort:"nav_order" -%}