diff --git a/nuxtjs.org/components/AButton.vue b/nuxtjs.org/components/AButton.vue index db1408189..e17dfdbd9 100644 --- a/nuxtjs.org/components/AButton.vue +++ b/nuxtjs.org/components/AButton.vue @@ -109,6 +109,7 @@ export default defineComponent({ }, isExternal() { if (!this.to) return false + const isInternal = typeof this.to !== 'string' || (this.to.startsWith('/') && this.to.startsWith('//') === false) return !isInternal diff --git a/nuxtjs.org/components/BlogpostList.vue b/nuxtjs.org/components/BlogpostList.vue index 1325028c6..46492bc40 100644 --- a/nuxtjs.org/components/BlogpostList.vue +++ b/nuxtjs.org/components/BlogpostList.vue @@ -8,7 +8,7 @@ :title="post.title" :description="post.description" :image="post.imgUrl" - :slug="post.slug" + :href="post.to" :category="post.category" >
diff --git a/nuxtjs.org/components/ContentCardTemplate.vue b/nuxtjs.org/components/ContentCardTemplate.vue index 48e320ba9..8cecb224a 100644 --- a/nuxtjs.org/components/ContentCardTemplate.vue +++ b/nuxtjs.org/components/ContentCardTemplate.vue @@ -1,23 +1,30 @@ @@ -39,7 +46,7 @@ export default defineComponent({ type: String, default: '' }, - slug: { + href: { type: String, default: '' }, diff --git a/nuxtjs.org/components/HeaderNavigation.vue b/nuxtjs.org/components/HeaderNavigation.vue index ef5223f56..0e56124f8 100644 --- a/nuxtjs.org/components/HeaderNavigation.vue +++ b/nuxtjs.org/components/HeaderNavigation.vue @@ -1,58 +1,67 @@ diff --git a/src/defaultTheme/components/atoms/Link.vue b/src/defaultTheme/components/atoms/Link.vue new file mode 100644 index 000000000..039c75aff --- /dev/null +++ b/src/defaultTheme/components/atoms/Link.vue @@ -0,0 +1,39 @@ + + + diff --git a/src/defaultTheme/components/atoms/prose/ProseA.vue b/src/defaultTheme/components/atoms/prose/ProseA.vue index 3801064a6..14e3f6539 100644 --- a/src/defaultTheme/components/atoms/prose/ProseA.vue +++ b/src/defaultTheme/components/atoms/prose/ProseA.vue @@ -1,15 +1,11 @@