fixed remark images

This commit is contained in:
Sergey Yarkov 2020-08-18 17:04:54 +03:00
parent 4d2db20caf
commit f17c1253a5
2 changed files with 26 additions and 33 deletions

View File

@ -174,8 +174,8 @@ module.exports = {
showSpinner: false, showSpinner: false,
}, },
}, },
"gatsby-plugin-sharp",
"gatsby-transformer-sharp", "gatsby-transformer-sharp",
"gatsby-plugin-sharp",
{ {
resolve: `gatsby-transformer-remark`, resolve: `gatsby-transformer-remark`,
options: { options: {
@ -189,11 +189,11 @@ module.exports = {
{ {
resolve: `gatsby-remark-images`, resolve: `gatsby-remark-images`,
options: { options: {
maxWidth: 2400, maxWidth: 900,
quality: 100, quality: 85,
withWebp: true, withWebp: true,
loading: "lazy", loading: "lazy",
linkImagesToOriginal: false, linkImagesToOriginal: true,
}, },
}, },
`gatsby-remark-responsive-iframe`, `gatsby-remark-responsive-iframe`,
@ -215,10 +215,6 @@ module.exports = {
elements: [`h1`, `h2`, `h3`, `h4`], elements: [`h1`, `h2`, `h3`, `h4`],
}, },
}, },
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{ {
resolve: `gatsby-remark-prismjs`, resolve: `gatsby-remark-prismjs`,
options: { options: {
@ -252,9 +248,6 @@ module.exports = {
], ],
}, },
}, },
],
},
},
"gatsby-plugin-netlify-cms", "gatsby-plugin-netlify-cms",
], ],
} }

View File

@ -5,7 +5,7 @@ const Newsletter = () => {
<div className="newsletter"> <div className="newsletter">
<div className="newsletter-heading">Новостная рассылка</div> <div className="newsletter-heading">Новостная рассылка</div>
<div className="newsletter-content"> <div className="newsletter-content">
<form action="#"> <form action="#" target='Новостная рассылка'>
<p> <p>
<span role="img" aria-label="hot"> <span role="img" aria-label="hot">
🔥 🔥