Run Prettier (npx prettier --write .)
This commit is contained in:
parent
55f3d824e4
commit
67acb0c494
@ -7,7 +7,9 @@ import siteMetadata from '@/data/siteMetadata'
|
||||
|
||||
const editUrl = (fileName) => `${siteMetadata.siteRepo}/blob/master/data/blog/${fileName}`
|
||||
const discussUrl = (slug) =>
|
||||
`https://mobile.twitter.com/search?q=${encodeURIComponent(`${siteMetadata.siteUrl}/blog/${slug}`)}`
|
||||
`https://mobile.twitter.com/search?q=${encodeURIComponent(
|
||||
`${siteMetadata.siteUrl}/blog/${slug}`
|
||||
)}`
|
||||
|
||||
const postDateTemplate = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }
|
||||
|
||||
|
@ -28,7 +28,7 @@ export function getFiles(type) {
|
||||
const prefixPaths = path.join(root, 'data', type)
|
||||
const files = getAllFilesRecursively(prefixPaths)
|
||||
// Only want to return blog/path and ignore root
|
||||
return files.map(file => file.slice(prefixPaths.length + 1))
|
||||
return files.map((file) => file.slice(prefixPaths.length + 1))
|
||||
}
|
||||
|
||||
export function formatSlug(slug) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user