From 5549a15df9749ab3bfc554f0933fc90865f2fbd8 Mon Sep 17 00:00:00 2001 From: Matthew Wang Date: Tue, 1 Oct 2019 22:22:34 -0700 Subject: [PATCH] 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