diff --git a/src/components/Image.js b/src/components/Image.js index 1fbc01f..d32b36c 100644 --- a/src/components/Image.js +++ b/src/components/Image.js @@ -1,8 +1,7 @@ -import * as React from "react" -import {GatsbyImage, getImage} from "gatsby-plugin-image" +import {getImage} from "gatsby-plugin-image" import {useStaticQuery, graphql} from "gatsby" -const Image = ({name}) => { +const Image = (name) => { const { images: { edges: images } } = useStaticQuery(graphql` query { images: allFile(filter: {relativeDirectory: {eq: "images"}}) { @@ -21,9 +20,7 @@ query { const propName = name const imageData = images.find(({node: {name}}) => name === propName) const image = getImage(imageData.node) - return ( - - ) + return image } export default Image diff --git a/src/pages/posts/init.js b/src/pages/posts/init.js index 8b38359..cee1a87 100644 --- a/src/pages/posts/init.js +++ b/src/pages/posts/init.js @@ -2,6 +2,7 @@ import * as React from "react" import * as styles from "../../styles/Post.module.css" import * as homeStyles from "../../styles/Home.module.css" import Header from "../../components/Header" +import Footer from "../../components/Footer" import {StaticImage} from "gatsby-plugin-image" const InitPage = () => { @@ -57,6 +58,8 @@ const InitPage = () => {

+ +