chore: layouts/PostLayout.tsx use main branch for editUrl

This commit is contained in:
ttyS3 2023-07-23 23:26:30 +08:00
parent 6140ff7780
commit 14067f2039
No known key found for this signature in database
GPG Key ID: A83C6C687C9E7888

View File

@ -10,7 +10,7 @@ import Tag from '@/components/Tag'
import siteMetadata from '@/data/siteMetadata'
import ScrollTopAndComment from '@/components/ScrollTopAndComment'
const editUrl = (path) => `${siteMetadata.siteRepo}/blob/master/data/${path}`
const editUrl = (path) => `${siteMetadata.siteRepo}/blob/main/data/${path}`
const discussUrl = (path) =>
`https://mobile.twitter.com/search?q=${encodeURIComponent(`${siteMetadata.siteUrl}/${path}`)}`