Skip to content

Commit

Permalink
fix: fix blog edit url so it can be directly opened by editor in brow…
Browse files Browse the repository at this point in the history
…ser (#38)

Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy authored Aug 27, 2024
1 parent b746e51 commit 6d409d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const config: Config = {
showReadingTime: true,
blogSidebarTitle: 'Recent Posts',
editUrl: ({ blogDirPath, blogPath, locale }) =>
`https://github.com/X-lab2017/open-digger-website/tree/master/${locale === defaultLocale ? `${blogDirPath}/${blogPath}` : `i18n/${locale}/docusaurus-plugin-content-blog/${blogPath}`}`,
`https://raw.githubusercontent.com/X-lab2017/open-digger-website/master/${locale === defaultLocale ? `${blogDirPath}/${blogPath}` : `i18n/${locale}/docusaurus-plugin-content-blog/${blogPath}`}`,
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
Expand Down

0 comments on commit 6d409d0

Please sign in to comment.