@@ -7,6 +7,7 @@ import GitHubGiscus from '@/app/ui/GitHubGiscus'
77import Line from '@/app/ui/Line'
88import MobileToc from '@/app/ui/MobileToc'
99import ScrollProgress from '@/app/ui/ScrollProgress'
10+ import ScrollToTop from '@/app/ui/ScrollToTop'
1011import { BlogPostStructuredData } from '@/app/ui/StructuredData'
1112import ToastPostal from '@/app/ui/ToastPostal'
1213import Toc from '@/app/ui/Toc'
@@ -42,7 +43,11 @@ export const generateMetadata = async ({
4243 const dictionary = await getDictionary ( locale )
4344
4445 if ( ! post ) {
45- return createMetadata ( { title : dictionary . posts . notFound , locale } )
46+ return createMetadata ( {
47+ title : dictionary . posts . notFound ,
48+ locale,
49+ blogName : dictionary . meta . blogName ,
50+ } )
4651 }
4752
4853 return createMetadata ( {
@@ -55,6 +60,7 @@ export const generateMetadata = async ({
5560 modifiedTime : post . date ,
5661 tags : post . tags ,
5762 locale,
63+ blogName : dictionary . meta . blogName ,
5864 } )
5965}
6066
@@ -72,15 +78,18 @@ export default async function LocalePost({
7278 if ( ! post ) throw new Error ( `Post not found for slug: ${ slug } ` )
7379
7480 const availableTranslations = getPostTranslations ( slug , locale )
75- const koPosts = getPostsByLocale ( 'ko' )
76- const otherPosts = koPosts
81+ const localePosts = getPostsByLocale ( locale )
82+ const otherPosts = (
83+ localePosts . length > 0 ? localePosts : getPostsByLocale ( 'ko' )
84+ )
7785 . filter ( ( other ) => other . slug !== slug && other . date < post . date )
7886 . slice ( 0 , 3 )
7987
8088 const { date, title, body, tags, toc } = post
8189
8290 return (
8391 < div className = "min-w-0 overflow-x-clip" >
92+ < ScrollToTop />
8493 < BlogPostStructuredData
8594 title = { title }
8695 description = { post . summary }
0 commit comments