mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 08:57:03 +02:00
feat(v2): implement blog (#1062)
* feat(v2): implement blog * expect flat blog structure * \n * blogpage can import many posts
This commit is contained in:
parent
a2d3f26722
commit
12fd204840
22 changed files with 736 additions and 16 deletions
|
@ -7,7 +7,15 @@ module.exports = function loadConfig(siteDir) {
|
|||
? customThemePath
|
||||
: path.resolve(__dirname, '../theme');
|
||||
|
||||
const themeComponents = ['Doc', 'Pages', 'Loading', 'NotFound', 'Markdown'];
|
||||
const themeComponents = [
|
||||
'Doc',
|
||||
'BlogPost',
|
||||
'BlogPage',
|
||||
'Pages',
|
||||
'Loading',
|
||||
'NotFound',
|
||||
'Markdown',
|
||||
];
|
||||
themeComponents.forEach(component => {
|
||||
if (!require.resolve(path.join(themePath, component))) {
|
||||
throw new Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue