mirror of
https://github.com/sergeyyarkov/devthread.ru.git
synced 2026-10-11 10:19:13 +03:00
gatsby img
This commit is contained in:
parent
cb48215bc4
commit
9e77d87419
@ -63,7 +63,7 @@ const Article = ({ data: { title, image, description, category, tags, time, date
|
||||
</div>)}
|
||||
</div>
|
||||
<div className="article-image">
|
||||
<Img fluid={image.childImageSharp.fluid} alt={title} />
|
||||
<Img loading="eager" fadeIn={false} fluid={image.childImageSharp.fluid} alt={title} />
|
||||
</div>
|
||||
<div className="article-inner inner">
|
||||
<div dangerouslySetInnerHTML={{__html: html}}></div>
|
||||
|
||||
@ -9,7 +9,7 @@ const ArticleCard = ({ data: { slug, title, image, category, description, tags }
|
||||
<article className="article-card">
|
||||
<div className="article-card__image">
|
||||
<Link to={`/article/${slug}`}>
|
||||
<Img fluid={image.childImageSharp.fluid} alt={title} />
|
||||
<Img loading="eager" fadeIn={false} fluid={image.childImageSharp.fluid} alt={title} />
|
||||
</Link>
|
||||
</div>
|
||||
<div className="article-card__heading">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user