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