Skip to content

Commit

Permalink
Merge pull request #203 from elsoul/fix/title
Browse files Browse the repository at this point in the history
fix title
  • Loading branch information
KishiTheMechanic authored Nov 26, 2023
2 parents 3be3b6b + a7ad018 commit 376bdec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/[locale]/legal/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { getAllArticles, getArticleBySlug } from '@/utils/article'
import DefaultLayout from '@/layouts/default/DefaultLayout'
import { getI18nProps } from '@/lib/getStatic'
import LegalContents from '@/components/articles/legal/LegalContents'
import { addClassToTitles } from '@/lib/rehypePlugin'

const articleDirName = 'legal'

Expand Down Expand Up @@ -70,6 +71,7 @@ export const getStaticProps: GetStaticProps = async (ctx) => {
})
.use(remark2Rehype)
.use(rehypeHighlight)
.use(addClassToTitles)
.use(rehypeStringify)
.process(article.content as string)

Expand Down

0 comments on commit 376bdec

Please sign in to comment.