diff --git a/website/_includes/_footer.jade b/website/_includes/_footer.jade index 8f11c2c80..e49ba309f 100644 --- a/website/_includes/_footer.jade +++ b/website/_includes/_footer.jade @@ -11,7 +11,7 @@ footer.o-footer.u-text.u-border-dotted each url, item in group li - +a(url)(target=url.includes("http") ? "_blank" : "")=item + +a(url)(target=url.includes("http") ? "_blank" : false)=item if SECTION != "docs" +grid-col("quarter") diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index 416eb3966..030e9a776 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -20,7 +20,7 @@ mixin h(level, id) info: https://mathiasbynens.github.io/rel-noopener/ mixin a(url, trusted) - a(href=url target="_blank" rel=(!trusted) ? "noopener nofollow" : "")&attributes(attributes) + a(href=url target="_blank" rel=!trusted ? "noopener nofollow" : false)&attributes(attributes) block //- Source link (with added icon for "code") @@ -72,7 +72,7 @@ mixin aside-code(label, language) see assets/css/_components/_buttons.sass mixin button(url, trusted, ...style) - a.c-button.u-text-label(href=url class=prefixArgs(style, "c-button") role="button" target="_blank" rel=(!trusted) ? "noopener nofollow" : "")&attributes(attributes) + a.c-button.u-text-label(href=url class=prefixArgs(style, "c-button") role="button" target="_blank" rel=!trusted ? "noopener nofollow" : false)&attributes(attributes) block @@ -133,7 +133,7 @@ mixin tag() mixin list(type, start) if type - ol.c-list.o-block.u-text(class="c-list--#{type}" style=(start === 0 || start) ? "counter-reset: li #{(start - 1)}" : "")&attributes(attributes) + ol.c-list.o-block.u-text(class="c-list--#{type}" style=(start === 0 || start) ? "counter-reset: li #{(start - 1)}" : false)&attributes(attributes) block else diff --git a/website/_includes/_navigation.jade b/website/_includes/_navigation.jade index e2b18aa4b..881a5db56 100644 --- a/website/_includes/_navigation.jade +++ b/website/_includes/_navigation.jade @@ -2,7 +2,7 @@ include _mixins -nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : "") +nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : false) a(href='/') #[+logo] if SUBSECTION != "index" @@ -11,7 +11,7 @@ nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : "") ul.c-nav__menu each url, item in NAVIGATION li.c-nav__menu__item - a(href=url target=url.includes("http") ? "_blank" : "")=item + a(href=url target=url.includes("http") ? "_blank" : false)=item li.c-nav__menu__item +a(gh("spaCy"))(aria-label="GitHub").u-hidden-xs #[+icon("github", 20)] diff --git a/website/_includes/_sidebar.jade b/website/_includes/_sidebar.jade index fb695e369..a0d4d4cd3 100644 --- a/website/_includes/_sidebar.jade +++ b/website/_includes/_sidebar.jade @@ -9,5 +9,5 @@ menu.c-sidebar.js-sidebar.u-text li.u-text-label.u-color-subtle=menu each url, item in items - li(class=(CURRENT == url || (CURRENT == "index" && url == "./")) ? "is-active" : "") - +a(url)(target=url.includes("http") ? "_blank" : "")=item + li(class=(CURRENT == url || (CURRENT == "index" && url == "./")) ? "is-active" : false) + +a(url)(target=url.includes("http") ? "_blank" : false)=item