Have ideas to improve npm?Join in the discussion! »

    gatsby-plugin-webmention

    0.2.0 • Public • Published

    Gatsby Plugin Webmention

    A Gatsby plugin that handles installing and sourcing for webmention.io.

    Installation

    yarn add gatsby-plugin-webmention

    Getting Started

    1. Configure the identities you want to use to log in to webmention.io using the identity option.
    2. Deploy that so the generated HTML tags are visible to webmention.io.
    3. You can now log into webmention.io and get your username. Put your new username in the config as well and redeploy.

    Config

    // gatsby-config.js
    module.exports = {
      plugins: [
        {
          resolve: `gatsby-plugin-webmention`,
          options: {
            username: undefined, // webmention.io username
            identity: {
              // you need to specify at least one of the identities
              // to be able to log in webmention.io
              github: "username",
              twitter: "username", // no @
              email: "username@example.com"
            },
            mentions: true,
            pingbacks: false,
            forwardPingbacksAsWebmentions: "https://example.com/endpoint",
            domain: "example.com",
            fetchLimit: 10000, // number of webmentions to fetch
            token: process.env.WEBMENTIONS_TOKEN
          }
        }
      ]
    };

    Brid.gy

    Consider setting up brid.gy to get Tweets sent as webmentions to webmention.io.

    Keywords

    none

    Install

    npm i gatsby-plugin-webmention

    DownloadsWeekly Downloads

    448

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    5.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar