From 636cd13cb76e13f728f8825b5c211f93f1a97aff Mon Sep 17 00:00:00 2001 From: Jamie Smith Date: Sat, 12 May 2018 11:15:21 -0400 Subject: [PATCH] allow external link _target --- _includes/masthead.html | 2 +- docs/_docs/07-navigation.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_includes/masthead.html b/_includes/masthead.html index d3a180c0a8d8..6d2808697067 100644 --- a/_includes/masthead.html +++ b/_includes/masthead.html @@ -11,7 +11,7 @@ {% assign domain = site.url | append: site.baseurl %} {% endif %}
  • - {{ link.title }} + {{ link.title }}
  • {% endfor %} diff --git a/docs/_docs/07-navigation.md b/docs/_docs/07-navigation.md index ae5f8b1ea354..8877f025195d 100644 --- a/docs/_docs/07-navigation.md +++ b/docs/_docs/07-navigation.md @@ -26,15 +26,16 @@ main: url: /page-archive/ - title: "Collections" url: /collection-archive/ - - title: "External Link" + - title: "External Link ↗" url: https://google.com + target: "_blank" ``` Which will give you a responsive masthead similar to this: ![priority plus masthead animation]({{ "/assets/images/mm-priority-plus-masthead.gif" | relative_url }}) -Optionally, you can add a `description` key per title in the `main` key. This `description` will show up like a tooltip, when the user hovers over the link on a desktop browser. +Optionally, you can add a `description` key per title in the `main` key. This `description` will show up like a tooltip, when the user hovers over the link on a desktop browser. You can also optionally specify a `target`, allowing you to open links in new tabs/windows. **ProTip:** Put the most important links first so they're always visible and not hidden behind the **menu toggle**. {: .notice--info}