We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af5b7c2 commit 144ef63Copy full SHA for 144ef63
src/components/_common/metatags/HeadWithMetatags.tsx
@@ -14,6 +14,8 @@ type Props = {
14
children?: React.ReactNode;
15
};
16
17
+const descriptionMaxLength = 250;
18
+
19
const getDescription = (content: ContentProps) => {
20
if (hasMetaDescription(content)) {
21
return content.data.metaDescription;
@@ -48,7 +50,7 @@ export const getPageTitle = (content: ContentProps) =>
48
50
49
51
export const HeadWithMetatags = ({ content, children }: Props) => {
52
const title = getPageTitle(content);
- const description = getDescription(content);
53
+ const description = getDescription(content).slice(0, descriptionMaxLength);
54
const url = getCanonicalUrl(content);
55
const noIndex = shouldNotIndex(content);
56
const imageUrl = `${appOrigin}/gfx/social-share-fallback.png`;
0 commit comments