Skip to content

Commit

Permalink
Fix indents
Browse files Browse the repository at this point in the history
  • Loading branch information
reccanti committed Nov 10, 2017
1 parent 58a6297 commit 167e846
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .verb.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ Results in:

```js
{
content: 'This is an excerpt.\n---\nThis is content',
data: { foo: 'bar' },
excerpt: 'This is an excerpt.\n'
content: 'This is an excerpt.\n---\nThis is content',
data: { foo: 'bar' },
excerpt: 'This is an excerpt.\n'
}
```

Expand All @@ -206,7 +206,7 @@ You can also set `excerpt` to a function. This function uses the 'file' and 'opt
```js
// returns the first 4 lines of the contents
function firstFourLines(file, options) {
file.excerpt = file.content.split('\n').slice(0, 4).join(' ');
file.excerpt = file.content.split('\n').slice(0, 4).join(' ');
}

var file = matter([
Expand All @@ -225,9 +225,9 @@ Results in:

```js
{
content: 'Only this\nwill be\nin the\nexcerpt\nbut not this...',
data: { foo: 'bar' },
excerpt: 'Only this will be in the excerpt'
content: 'Only this\nwill be\nin the\nexcerpt\nbut not this...',
data: { foo: 'bar' },
excerpt: 'Only this will be in the excerpt'
}
```

Expand Down

0 comments on commit 167e846

Please sign in to comment.