update
This commit is contained in:
1 parent
31dd2b0049
commit
7039b10df2
32 files changed
+415
-192
No files matched your search
@@ -3,6 +3,8 @@ import path from 'path'
|
||||
|
||||
import dotenv from 'dotenv'
|
||||
|
||||
import { THEME_FILENAME } from '../server/theme'
|
||||
|
||||
dotenv.config({ path: '../../.env' })
|
||||
dotenv.config()
|
||||
|
||||
@@ -11,11 +13,10 @@ export const CONTENT_PATH = path.resolve(
|
||||
(fs.existsSync('../../_posts') ? '../..' : 'content')
|
||||
)
|
||||
|
||||
export const srcPostPath = (...ps: string[]): string =>
|
||||
path.join(CONTENT_PATH, '_posts', ...ps)
|
||||
|
||||
export const srcMediaPath = (...ps: string[]): string =>
|
||||
path.join(CONTENT_PATH, '_media', ...ps)
|
||||
export const srcPath = (
|
||||
root: '_post' | '_media' | typeof THEME_FILENAME,
|
||||
...ps: string[]
|
||||
): string => path.join(CONTENT_PATH, root, ...ps)
|
||||
|
||||
export const builtPath = (...ps: string[]): string =>
|
||||
path.join(__dirname, '../built', ...ps)
|
||||
|
||||
Reference in new issue
Block a user