_.merge({}, { filePath: path.join(postsPath, `${year}-${month}-${day}-${_.kebabCase(options.title)}.md`), date: dayjs().format('YYYY-MM-DD'), url: `https://blog.lndo.site/${year}/${month}/${day}/${_.kebabCase(options.title)}/`, author: 'Team Lando', pic: 'https://gravatar.com/avatar/c335f31e62b453f747f39a84240b3bbd', link: 'https://twitter.com/devwithlando', location: 'The Internet', parsedTags: _.map(options.tags, tag => `- ${tag}`).join(os.EOL), }, options)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
toc[key].forEach(item => { console.log(` * [${item.name}](#${_.kebabCase(item.name)})`) })
categories.forEach(category => { const categoryPath = `/articles/categories/${_.kebabCase(category)}/` createPage({ path: categoryPath, component: path.resolve(`src/templates/categories.js`), context: { category, }, }) })
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = text => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)
// https://devdocs.io/lodash~4/index#kebabCase const slugify = (text) => _.kebabCase(text)