gatsby-plugin

How to make image link for my website like this https://website.com/image.png in gatsby.config?

自古美人都是妖i 提交于 2021-02-10 14:35:22
问题 I want to add image url in meta tag for SEO. But how can I create image link to add in meta tag? I am using gatsby. I have src/img/img1.png image and now I want to create image URLs like this https://website.com/src/img/img1.png How can I do it in gatsby-config.js file? 回答1: Most of Gatsby starters comes with a SEO component, that saves you to build one from scratch. Internally, it uses <Helmet> , a component that puts everything that is wrapped inside, in the <header> tag. So, given: import

Gatsby - Adding Google fonts to Gatsby site

爱⌒轻易说出口 提交于 2020-08-20 06:17:32
问题 I'm trying to add a Google Font (Mukta Malar) in my Gatsby site. I've seen many articles on adding Google fonts to a Gatsby site and most of them seem to use this plugin: gatsby-plugin-prefetch-google-fonts. I've used the above plugin in my site by adding it in the gatsby-config.js file as: plugins: [ { resolve: `gatsby-plugin-prefetch-google-fonts`, options: { fonts: [ { family: `Mukta Malar` }, ], }, } ] and added the font family to my css file as well: * { font-family: "Mukta Malar", sans

Gatsby - Adding Google fonts to Gatsby site

非 Y 不嫁゛ 提交于 2020-08-20 06:17:27
问题 I'm trying to add a Google Font (Mukta Malar) in my Gatsby site. I've seen many articles on adding Google fonts to a Gatsby site and most of them seem to use this plugin: gatsby-plugin-prefetch-google-fonts. I've used the above plugin in my site by adding it in the gatsby-config.js file as: plugins: [ { resolve: `gatsby-plugin-prefetch-google-fonts`, options: { fonts: [ { family: `Mukta Malar` }, ], }, } ] and added the font family to my css file as well: * { font-family: "Mukta Malar", sans