Skip to content

Commit

Permalink
1. Replace slug with permalink for disqus identifier value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouch1978 committed Dec 12, 2023
1 parent 7a066a2 commit ae0f66e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/theme/BlogPostPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function BlogPostPageContent({ sidebar, children }: { sidebar: BlogSidebar; chil
<DiscussionEmbed
shortname="ouch1978"
config={{
identifier: slug,
identifier: metadata.permalink,
title: title,
language: "zh-TW",
}}
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function FooterWrapper(props: Props): JSX.Element {
<DiscussionEmbed
shortname="ouch1978"
config={{
identifier: slug,
identifier: metadata.permalink,
title: title,
language: "zh-TW",
}}
Expand Down

0 comments on commit ae0f66e

Please sign in to comment.