Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reptar/reptar-excerpt
https://github.com/reptar/reptar-excerpt
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/reptar/reptar-excerpt
- Owner: reptar
- Created: 2015-08-30T20:37:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-25T20:23:16.000Z (almost 8 years ago)
- Last Synced: 2024-10-16T01:32:44.893Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/reptar-excerpt
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reptar-excerpt
A Reptar plugin for creating a post excerpt.
### Installation
Add to your array of `middlewares`:
```
const reptarExcerpt = require('reptar-excerpt');module.exports = {
middlewares: [
reptarExcerpt({
// This option lets you either use html enhanced excerpts
// (meaning links, boldness, italicization, and so on will be there) by
// setting the value to `false`. You can use plain text in your excerpt
// by changing the value to `true`.
textOnly: false,// This option can limit your excerpt length to your specified amount
// of characters. Use the value `false` to disable it or a number value
// such as `250` to set a max limit.
charLimit: false,
})
],
};
```