From 942a2b9804467e71571231d30161697157edc955 Mon Sep 17 00:00:00 2001 From: Jason Yu Date: Sun, 13 May 2018 16:54:55 +0100 Subject: [PATCH] feat: show OutboundLink icon for external links (#428) --- lib/app/app.js | 2 ++ lib/default-theme/NavLink.vue | 7 +++++-- lib/default-theme/NavLinks.vue | 5 ++--- lib/default-theme/Page.vue | 2 -- lib/markdown/link.js | 17 +++++++---------- 5 files changed, 16 insertions(+), 17 deletions(-) diff --git a/lib/app/app.js b/lib/app/app.js index 8b78a28733..ceaa7b905b 100644 --- a/lib/app/app.js +++ b/lib/app/app.js @@ -1,6 +1,7 @@ import Vue from 'vue' import Router from 'vue-router' import Content from './Content' +import OutboundLink from '../default-theme/OutboundLink.vue' import ClientOnly from './ClientOnly' import dataMixin from './dataMixin' import store from './store' @@ -28,6 +29,7 @@ Vue.use(Router) Vue.mixin(dataMixin) // component for rendering markdown content and setting title etc. Vue.component('Content', Content) +Vue.component('OutboundLink', OutboundLink) // component for client-only content Vue.component('ClientOnly', ClientOnly) diff --git a/lib/default-theme/NavLink.vue b/lib/default-theme/NavLink.vue index c172e37520..09d4dc85e0 100644 --- a/lib/default-theme/NavLink.vue +++ b/lib/default-theme/NavLink.vue @@ -8,10 +8,13 @@ {{ item.text }} + > + {{ item.text }} + +