refactor(app): simplify head link and meta rendering, add more titles and descriptions
This commit is contained in:
+2
-12
@@ -22,19 +22,9 @@ const { s3Bucket, s3Host } = useRuntimeConfig().public;
|
||||
>
|
||||
<Head>
|
||||
<Title>{{ title }}</Title>
|
||||
<template v-for="link in head.link" :key="link.id">
|
||||
<Link
|
||||
:id="link.id"
|
||||
:rel="link.rel"
|
||||
:href="link.href"
|
||||
:hreflang="link.hreflang"
|
||||
/>
|
||||
</template>
|
||||
<Link rel="dns-prefetch" :href="`https://${s3Bucket}.${s3Host}/`" />
|
||||
<Link v-for="link in head.link" :key="link.id" v-bind="link" />
|
||||
<Link rel="preconnect" :href="`https://${s3Bucket}.${s3Host}/`" />
|
||||
<template v-for="meta in head.meta" :key="meta.id">
|
||||
<Meta :id="meta.id" :property="meta.property" :content="meta.content" />
|
||||
</template>
|
||||
<Meta v-for="meta in head.meta" :key="meta.id" v-bind="meta" />
|
||||
</Head>
|
||||
<Body>
|
||||
<NuxtLoadingIndicator />
|
||||
|
||||
Reference in New Issue
Block a user