Skip to content

Commit c34b77e

Browse files
committed
chore: seo 설정 수정, gatsby warning 해소
1 parent 554b9f9 commit c34b77e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/components/bio.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
33
import { StaticQuery, graphql } from 'gatsby';
4-
import Image from 'gatsby-image';
4+
import { GatsbyImage, getImage } from 'gatsby-plugin-image';
55

66
import media from '../utils/media';
77
import github from '../images/social/github.svg';
@@ -73,6 +73,7 @@ const Bio = () => (
7373
query={bioQuery}
7474
render={(data) => {
7575
const { author, authorTagline, social } = data.site.siteMetadata;
76+
const avatar = getImage(data.avatar.childImageSharp.gatsbyImageData);
7677
return (
7778
<Container>
7879
<TextContainer>
@@ -104,7 +105,7 @@ const Bio = () => (
104105
</SocialIconWrapper>
105106
</TextContainer>
106107
<ImageContainer>
107-
<Image fixed={data.avatar.childImageSharp.fixed} alt={author} />
108+
<GatsbyImage image={avatar} alt={author} />
108109
</ImageContainer>
109110
</Container>
110111
);
@@ -116,9 +117,7 @@ const bioQuery = graphql`
116117
query BioQuery {
117118
avatar: file(absolutePath: { regex: "/icon.png/" }) {
118119
childImageSharp {
119-
fixed(width: 100, height: 100) {
120-
...GatsbyImageSharpFixed
121-
}
120+
gatsbyImageData(width: 100, height: 100, layout: FIXED)
122121
}
123122
}
124123
site {

src/pages/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class BlogIndex extends Component {
3737

3838
export const Head = () => (
3939
<Seo
40-
title="zooneon's dev log"
41-
keywords={[`gatsby`, `blog`, `spring`, `zooneon`]}
40+
title="zooneon's log"
41+
keywords={[`gatsby`, `blog`, `devops`, `zooneon`, `kubernetes`, `aws`]}
4242
/>
4343
);
4444

@@ -51,7 +51,7 @@ export const pageQuery = graphql`
5151
title
5252
}
5353
}
54-
allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {
54+
allMarkdownRemark(sort: { frontmatter: { date: DESC } }) {
5555
edges {
5656
node {
5757
id

0 commit comments

Comments
 (0)