Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 992 Bytes

File metadata and controls

24 lines (17 loc) · 992 Bytes

hexo-plain-excerpt

npm version

NexT removes auto excerpt in v7.6.0. None of the existing plugins is as good as the original one. This repo aims to bring back the original NexT excerpt. It is modified from ashisherc/hexo-auto-excerpt.

Install

npm install --save hexo-plain-excerpt

Option

excerpt_length: 350 (number of characters, default to 150).

Changes

Here are the differences of this fork from the original repo.

  • Update html-to-text to the latest version.
  • Replace the default item prefix (*) with a space.
  • Do nothing if excerpt already exists.
  • Add ... at the end.

License

The original repo is published under the MIT license.