fix(v2): errornous default include in blog plugin

This commit is contained in:
Yangshun Tay 2019-03-30 15:34:28 -07:00
parent f0ff211c94
commit 6fd9253328
3 changed files with 3 additions and 4 deletions

View file

@ -21,9 +21,9 @@ function fileToUrl(fileName) {
const DEFAULT_OPTIONS = { const DEFAULT_OPTIONS = {
metadataKey: 'blogMetadata', metadataKey: 'blogMetadata',
metadataFileName: 'blogMetadata.json', metadataFileName: 'blogMetadata.json',
path: 'blog', // Path to data on filesystem. path: 'blog', // Path to data on filesystem, relative to site dir.
routeBasePath: 'blog', // URL Route. routeBasePath: 'blog', // URL Route.
include: ['*.md, *.mdx'], // Extensions to include. include: ['*.md', '*.mdx'], // Extensions to include.
pageCount: 10, // How many entries per page. pageCount: 10, // How many entries per page.
blogPageComponent: '@theme/BlogPage', blogPageComponent: '@theme/BlogPage',
blogPostComponent: '@theme/BlogPost', blogPostComponent: '@theme/BlogPost',

View file

@ -1,7 +1,7 @@
{ {
"name": "@docusaurus/plugin-content-blog", "name": "@docusaurus/plugin-content-blog",
"version": "1.0.0", "version": "1.0.0",
"description": "Blog content plugin for Docusaurus", "description": "Blog plugin for Docusaurus",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View file

@ -33,7 +33,6 @@ module.exports = {
{ {
name: '@docusaurus/plugin-content-blog', name: '@docusaurus/plugin-content-blog',
options: { options: {
include: ['*.md', '*.mdx'],
path: '../website-1.x/blog', path: '../website-1.x/blog',
}, },
}, },