Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nandomoreirame committed Dec 10, 2019
1 parent 01a1f61 commit a81628f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
17 changes: 10 additions & 7 deletions gatsby-config.js
Expand Up @@ -16,7 +16,11 @@ const plugins = [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1300,
maxWidth: 960,
quality: 90,
withWebp: true,
linkImagesToOriginal: false,
showCaptions: true,
},
},
`gatsby-remark-reading-time`,
Expand Down Expand Up @@ -62,11 +66,11 @@ const plugins = [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `blog.nandomoreira.dev`,
short_name: `blog do nando`,
name: `blog do nando`,
short_name: `bnando`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
background_color: `#000`,
theme_color: `#000`,
display: `minimal-ui`,
icon: `static/icon.png`,
},
Expand All @@ -77,8 +81,6 @@ const plugins = [
path: resolve(__dirname, `src/pages`),
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`,
`gatsby-plugin-sitemap`,
]
Expand Down Expand Up @@ -110,6 +112,7 @@ module.exports = {
siteName: `nandomoreira`,
siteDesc: `~apenas mais um programador`,
description: `Sou um desenvolvedor front-end. Ajudo ONGs e pequenas empresas a criar projetos web personalizados de alta qualidade. No meu tempo livre eu escrevo em meu blog e contribuo com projetos open source | Desenvolvedor Front-end em Curitiba | Desenvolvedor WordPress em Curitiba | UX Designer em Curitiba`,
siteUrl: `https://blog.nandomoreira.dev`,
author: {
name: `Fernando Moreira`,
email: `hi@nandomoreira.dev`,
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
@@ -1,3 +1,3 @@
[build]
command = "gatsby build"
publish = "public"
command = "yarn build"
publish = "public/"
16 changes: 8 additions & 8 deletions src/components/layout.tsx
Expand Up @@ -15,8 +15,8 @@ import SiteFooter from './footer'
import { globalStyles } from '@styles'
import { iLayoutProps } from '@types'

const Layout = ({ children, ...props }: iLayoutProps) => {
const data = useStaticQuery(graphql`
const Layout = ({ children }: iLayoutProps) => {
const { site } = useStaticQuery(graphql`
query SiteTitleQuery {
site {
siteMetadata {
Expand All @@ -28,18 +28,18 @@ const Layout = ({ children, ...props }: iLayoutProps) => {
`)

return (
<div {...props}>
<>
<Global styles={globalStyles} />
<SiteHeader
title={data.site.siteMetadata.siteName}
desc={data.site.siteMetadata.siteDesc}
title={site.siteMetadata.siteName}
desc={site.siteMetadata.siteDesc}
/>
<main id="content">{children}</main>
<SiteFooter
title={data.site.siteMetadata.siteName}
desc={data.site.siteMetadata.siteDesc}
title={site.siteMetadata.siteName}
desc={site.siteMetadata.siteDesc}
/>
</div>
</>
)
}

Expand Down

0 comments on commit a81628f

Please sign in to comment.