🐛 Fix sitemap isn't use minimal endpoint

This commit is contained in:
LittleSheep 2024-08-11 15:36:56 +08:00
parent d4670bb543
commit ac6287d985
4 changed files with 11 additions and 2 deletions

View File

@ -97,7 +97,6 @@ useHead({
useSeoMeta({
author: post.value.author.nick,
title: title,
publisher: "Solar Network",
articlePublishedTime: post.value.publishedAt,
description: description,
ogTitle: title,
@ -105,6 +104,9 @@ useSeoMeta({
ogUrl: `${useRuntimeConfig().public.siteUrl}${route.fullPath}`,
ogImage: firstImage,
ogVideo: firstVideo,
ogType: "article",
publisher: "Solar Network",
ogSiteName: "Solsynth Capital",
})
const externalOpenLink = computed(() => `${config.public.solianUrl}/posts/view/${route.params.id}`)

View File

@ -0,0 +1,7 @@
<template>
</template>
<script setup lang="ts">
</script>

View File

@ -1,7 +1,7 @@
export default defineSitemapEventHandler(async () => {
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()
return result.data.map((item: any) => asSitemapUrl({