netlify-webmentions-plugin
v1.0.1
Published
Check your sites local feed and sends webmentions for new posts after your site builds
Maintainers
Readme
netlify-webmentions-plugin
Checks your RSS or JSON Feed to send webmentions after your site finishes building. It also tries to cache the last item that was checked to prevent a single post sending multiple webmentions on every build.
Usage
On your main site that builds and deploys on Netlify run:
npm install --save-dev netlify-webmentions-pluginAfter that you should add the following to your netlify.toml:
[[plugins]]
package = "netlify-webmentions-plugin"
[plugins.inputs]
feed = "latest.xml"Where feed is optional and defaults to feed.xml. When the site builds, it will
check https://example.com/feed.xml where example.com is your sites URL as defined
in Netlify's Environment Variables.
If possible, you should configure an RSS feed on your site that sorts by most recently
updated and use that value as feed.
