Gatsby 盖茨比-使用标记中的绝对路径链接到图像

Gatsby 盖茨比-使用标记中的绝对路径链接到图像,gatsby,Gatsby,我正在使用盖茨比和盖茨比评论图片,这样我可以链接到降价中的图片 我真的很想在降价中使用图像的绝对路径,但我似乎无法让它工作。例如,第一个不起作用,但第二个起作用: ![Not working](/src/images/2017/04/ToString-Method-Added.png) ![Working](./ToString-Method-Added.png) 下面是我的gatsby config.js(我使用教程作为起点): 我曾尝试将另一个gatsby源文件系统添加到/src/imag

我正在使用盖茨比和盖茨比评论图片,这样我可以链接到降价中的图片

我真的很想在降价中使用图像的绝对路径,但我似乎无法让它工作。例如,第一个不起作用,但第二个起作用:

![Not working](/src/images/2017/04/ToString-Method-Added.png)
![Working](./ToString-Method-Added.png)
下面是我的
gatsby config.js
(我使用教程作为起点):

我曾尝试将另一个
gatsby源文件系统
添加到
/src/images
中,但没有任何帮助

我想做的事情可能吗?如果可能,我错过了什么

module.exports = {
  siteMetadata: { title: `Pandas Eating Lots` },
  plugins: [
    {
      resolve: `gatsby-source-filesystem`,
      options: { name: `src`, path: `${__dirname}/src/` }
    },
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: "GatsbyJS",
        short_name: "GatsbyJS",
        start_url: "/",
        background_color: "#6b37bf",
        theme_color: "#6b37bf",
        display: "standalone"
      }
    },
    "gatsby-plugin-offline",
    `gatsby-plugin-react-helmet`,
    `gatsby-transformer-remark`,
    `gatsby-plugin-emotion`,
    `gatsby-plugin-sharp`,
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          {
            resolve: `gatsby-remark-images`,
            options: {
              // It's important to specify the maxWidth (in pixels) of
              // the content container as this plugin uses this as the
              // base for generating different widths of each image.
              maxWidth: 590
            }
          }
        ]
      }
    }
  ]
};