From 345937f4d8f2ed9092a0f2a1432561c0f359a332 Mon Sep 17 00:00:00 2001 From: mtail Date: Tue, 27 Mar 2018 16:32:25 -0700 Subject: [PATCH] Fix a few bugs and add a feature. - Link injection for document headers has been broken for a while due to my misunderstanding of the "for in" syntax in JavaScript. This now works as expected. - Same problem also prevented the feature that causes every link to outside of istio.io to be opened in a separate window. This now works as intended. - Made the gear dropdown menu be right-aligned such that it doesn't go off-screen on portrait mode tablets. - Stop importing Popper.js since it's only needed for dropdown menus that aren't in the nav bar. Ours is in a nav bar... - Added link injection for
terms, which makes it easy to create links to individual glossary entries. --- _includes/header.html | 2 +- _layouts/base.html | 1 - _sass/base/_common.scss | 3 ++- js/misc.js | 44 ++++++++++++++++++++++++++++++----------- js/misc.min.js | 2 +- 5 files changed, 36 insertions(+), 16 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 27ac7dc91d5e..f84245a60ea4 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -48,7 +48,7 @@ -