🐛 Fix sitemap isn't use minimal endpoint
This commit is contained in:
parent
d4670bb543
commit
ac6287d985
@ -97,7 +97,6 @@ useHead({
|
|||||||
useSeoMeta({
|
useSeoMeta({
|
||||||
author: post.value.author.nick,
|
author: post.value.author.nick,
|
||||||
title: title,
|
title: title,
|
||||||
publisher: "Solar Network",
|
|
||||||
articlePublishedTime: post.value.publishedAt,
|
articlePublishedTime: post.value.publishedAt,
|
||||||
description: description,
|
description: description,
|
||||||
ogTitle: title,
|
ogTitle: title,
|
||||||
@ -105,6 +104,9 @@ useSeoMeta({
|
|||||||
ogUrl: `${useRuntimeConfig().public.siteUrl}${route.fullPath}`,
|
ogUrl: `${useRuntimeConfig().public.siteUrl}${route.fullPath}`,
|
||||||
ogImage: firstImage,
|
ogImage: firstImage,
|
||||||
ogVideo: firstVideo,
|
ogVideo: firstVideo,
|
||||||
|
ogType: "article",
|
||||||
|
publisher: "Solar Network",
|
||||||
|
ogSiteName: "Solsynth Capital",
|
||||||
})
|
})
|
||||||
|
|
||||||
const externalOpenLink = computed(() => `${config.public.solianUrl}/posts/view/${route.params.id}`)
|
const externalOpenLink = computed(() => `${config.public.solianUrl}/posts/view/${route.params.id}`)
|
||||||
|
7
pages/users/[...name].vue
Normal file
7
pages/users/[...name].vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
</script>
|
@ -1,7 +1,7 @@
|
|||||||
export default defineSitemapEventHandler(async () => {
|
export default defineSitemapEventHandler(async () => {
|
||||||
const config = useRuntimeConfig();
|
const config = useRuntimeConfig();
|
||||||
|
|
||||||
const res = await fetch(`${config.public.solarNetworkApi}/cgi/interactive/posts?take=500`)
|
const res = await fetch(`${config.public.solarNetworkApi}/cgi/interactive/posts/minimal?take=500`)
|
||||||
const result = await res.json()
|
const result = await res.json()
|
||||||
|
|
||||||
return result.data.map((item: any) => asSitemapUrl({
|
return result.data.map((item: any) => asSitemapUrl({
|
||||||
|
Loading…
Reference in New Issue
Block a user