0.1.2 • Published 4 years ago

gatsby-transform-link v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

gatsby-transform-link

Modifying links on bulk is now easier with gatsby-transform-link.

The plugin can add prefix and suffix to the absolute URLs in your gatsby content. Can be used for -

  • adding UTM and Common Query Params
  • adding keys in the start of links

Install

npm i gatsby-transformer-remark gatsby-transform-link

How to use

// gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        {
          resolve: `gatsby-transform-link`,
          options: {
            prefix: "",
            suffix: "",
          },
        },
      ],
    },
  },
];

Options

NameDefaultDescription
prefix''prefix to the URLs
suffix''suffix to the URLS