From 8564f9ef877a8138a2db1ee0fed06cffb8e50cdf Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 24 Jan 2023 19:26:04 +0100 Subject: [PATCH] website: hardcode url for disqus comments Signed-off-by: Jens Langhammer --- website/src/theme/BlogPostPage/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/theme/BlogPostPage/index.js b/website/src/theme/BlogPostPage/index.js index 3153366a5..8c921efb6 100644 --- a/website/src/theme/BlogPostPage/index.js +++ b/website/src/theme/BlogPostPage/index.js @@ -46,7 +46,7 @@ function BlogPostPageContent({ sidebar, children }) { } export default function BlogPostPage(props) { const BlogPostContent = props.content; - const title = props.content.frontMatter.title; + const title = props.content.frontMatter.title.substring(0, 200); const fmtId = title.replace(/^\//, "").replaceAll(/[\s\/]/gi, "-"); const disqusId = fmtId == "" ? "main" : fmtId; return ( @@ -64,7 +64,7 @@ export default function BlogPostPage(props) {