From 109bb5fc2865400cc4a62248a57407e7ed0c41fa Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 23 Dec 2025 21:43:28 +0900 Subject: [PATCH 1/2] #168 --- frontend/scripts/generate-sitemap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/scripts/generate-sitemap.js b/frontend/scripts/generate-sitemap.js index f30786c..3d94a49 100644 --- a/frontend/scripts/generate-sitemap.js +++ b/frontend/scripts/generate-sitemap.js @@ -42,7 +42,7 @@ const createPostListOutlet = async tagName => ` fetchpriority="high" decoding="async" class="object-none w-full h-full" - src="${ post.url }" /> + src="${ post.thumbnail }" /> `).join ('') } -- 2.34.1 From fb209936c8332d88012ad0e79fe0444e81ba6759 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 23 Dec 2025 22:44:19 +0900 Subject: [PATCH 2/2] #168 --- frontend/scripts/generate-sitemap.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/scripts/generate-sitemap.js b/frontend/scripts/generate-sitemap.js index 3d94a49..bf6c9fe 100644 --- a/frontend/scripts/generate-sitemap.js +++ b/frontend/scripts/generate-sitemap.js @@ -19,7 +19,6 @@ const fetchPosts = async tagName => (await axios.get (`${ API_BASE_URL }/posts`, { params: { ...(tagName && { tags: tagName, match: 'all', limit: '20' }) } })).data.posts -const fetchPostIds = async () => (await fetchPosts ()).map (post => post.id) const fetchTags = async () => (await axios.get (`${ API_BASE_URL }/tags`)).data const fetchTagNames = async () => (await fetchTags ()).map (tag => tag.name) @@ -33,7 +32,7 @@ const createPostListOutlet = async tagName => `
- ${ (await fetchPosts (tagName)).map (post => ` + ${ (await fetchPosts (tagName)).slice (0, 20).map (post => `