Skip to content

A plugin for hexo. If post has no description set, will auto use excerpt as description.

License

Notifications You must be signed in to change notification settings

ALiangLiang/hexo-description

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-description

npm version

A plugin for hexo. If post has no description set, will auto use excerpt as description.

Install

npm install hexo-description --save

How work

Workflow:

  1. Origin post
---
title: Example post
---
## excerpt
- list1
- list2
<!-- more -->
content
  1. Origin excerpt
## excerpt
- list1
- list2
  1. Rendered excerpt
<h2>excerpt</h2>
<li>list1</li>
<li>list2</li>
  1. Finally we set pure excerpt text to description
excerptlist1list2

Compatible plugins

About

A plugin for hexo. If post has no description set, will auto use excerpt as description.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published