hexo-console-webmention

1.0.0 • Public • Published

hexo-console-webmention

Sending Webmentions for posts within Hexo

This console command for Hexo utilizes the work of Remy Sharp, who wrote a JS library to parse a URL for sending Webmentions to linked Blogs. It is mainly used at webmention.app, but has its source code here (https://github.com/remy/wm) and its NPM package here (https://www.npmjs.com/package/@remy/webmention).

Installation

npm install hexo-console-webmention --save

Usage

Parameter

3 options are available:

--slug : Parse a particular post by its filename (slug)

--count : Parse a number of latest posts (not considered when --slug is used)>; default = 1

--send : Parse and send Webmentions (without, only the endpoints found are displayed)

Examples

Parse and show endpoints for the latest post:

hexo webmention

Parse and show endpoints for the latest 20 posts:

hexo webmention --count 20

Parse and send Webmentions for the latest post:

hexo webmention --send true

Parse and send Webmentions for the post "My Fancy Blogpost":

hexo webmention --slug my-fancy-blogpost --send true

Contributing

Yes, please ... fork the project, make your changes and submit pull requests against the main branch.

History

1.0.0

  • Initial version

License

MIT : http://opensource.org/licenses/MIT

Readme

Keywords

Package Sidebar

Install

npm i hexo-console-webmention

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.6 kB

Total Files

4

Last publish

Collaborators

  • kristofzerbe