Skip to content

Commit

Permalink
chore: update details
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Aug 10, 2017
1 parent 7ed3b88 commit 8ae4534
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _site
node_modules
packages/*/lib
tmp
package-lock.json
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,6 @@ Will output a **Markdown data tree**:

And each Markdown file will be parsed as a **Markdown data**. Actually, a Markdown data is the returned value of [mark-twain](https://github.com/benjycui/mark-twain), and it could be preprocessed by plugins.

`publishDate` is required in Markdown file:

```markdown
---
title: foo
publishDate: 2017-08-08
tags:
- life
- code
---

content here
```

#### exclude: RegExp

> default: null
Expand Down
2 changes: 1 addition & 1 deletion packages/bisheng-theme-one/src/template/Archive.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default (props) => {
const entryList = [];
posts.forEach(({ meta, description }, index) => {
if (!meta.publishDate) {
console.error(`You must set 'publishDate' in meta data for ${meta.filename}.`);
console.error(`You must set 'publishDate' in meta data for ${meta.filename}.`);
return;
}
const publishYear = meta.publishDate.slice(0, 4);
Expand Down

0 comments on commit 8ae4534

Please sign in to comment.