New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

hexo-excerpt

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-excerpt

Automatic excerpt generator for Hexo!

latest
Source
npmnpm
Version
1.3.1
Version published
Weekly downloads
462
-8.51%
Maintainers
1
Weekly downloads
 
Created
Source

hexo-excerpt

Build Status NPM version Coverage Status

Automatic excerpt generator for Hexo!.

Hexo-excerpt: https://chekun.me/post/hexo-excerpt

Installation

$ npm install hexo-excerpt --save

This Plugin use es6 syntax, make sure your node support it.

Features

  • still works!
  • If you're lazy as I am, the plugin generate the excerpt for you, without breaking your sentences or codes!
  • If no tag is specified, the post will be updated with excerpt and more variables.
  • CSS selector can be used to filter generated excerpt.

How?

This plugin runs through all your posts, if your post has more than the configured number of direct tags, then they will be the excerpt, otherwise the whole post will be used.

Configuration

You can specify the size of the excerpt by setting depth in your config, which defaults to 10.

You can also exclude certain tags from the generated excerpt using css selectors. Tags matching any of the selectors will be excluded.

The default behaviour is to only show an excerpt if it would not be the whole post. Set hideWholePostExcerpts to false to override that and show whole post excerpts.

excerpt:
  depth: 10
  excerpt_excludes: []
  more_excludes: []
  hideWholePostExcerpts: true

License

MIT

Keywords

hexo

FAQs

Package last updated on 28 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts