1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| module.exports = { write: { platform: 'yuque', yuque: { token: process.env.YUQUE_TOKEN, login: process.env.YUQUE_LOGIN, repo: process.env.YUQUE_REPO, onlyPublic: false, onlyPublished: true, }, "yuque-pwd": { username: process.env.YUQUE_USERNAME, password: process.env.YUQUE_PASSWORD, login: process.env.YUQUE_LOGIN, repo: process.env.YUQUE_REPO, } }, deploy: { platform: 'local', local: { outputDir: './source/_posts', filename: 'title', format: 'markdown', catalog: false, frontMatter: { enable: true, include: ['categories', 'tags', 'title', 'date', 'updated', 'permalink', 'cover', 'description'], timeFormat: true, } } }, image: { enable: true, platform: 'local', local: { outputDir: './source/images', prefixKey: '/images' } }, }
|