perf: memoize post queries and reduce JSON-LD bloat
This commit is contained in:
@@ -145,8 +145,6 @@ export default async function BlogPostPage({ params }: Props) {
|
||||
wordCount: wordCount,
|
||||
readingTime: `${readingTime} min read`,
|
||||
}),
|
||||
articleBody: textContent.slice(0, 5000),
|
||||
inLanguage: siteConfig.defaultLocale,
|
||||
url: postUrl,
|
||||
};
|
||||
|
||||
|
||||
@@ -130,6 +130,8 @@ export default async function RootLayout({
|
||||
<head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
||||
<link rel="font" href="https://fonts.googleapis.com" />
|
||||
<link rel="font" href="https://fonts.gstatic.com" />
|
||||
</head>
|
||||
<body>
|
||||
<NextTopLoader
|
||||
|
||||
Reference in New Issue
Block a user