From a81628fc64e50b5357f1d008163469bbffe28af4 Mon Sep 17 00:00:00 2001 From: Fernando Moreira Date: Tue, 10 Dec 2019 10:02:58 -0300 Subject: [PATCH] fix build --- gatsby-config.js | 17 ++++++++++------- netlify.toml | 4 ++-- src/components/layout.tsx | 16 ++++++++-------- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index f1216f2..0bf20dc 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -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`, @@ -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`, }, @@ -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`, ] @@ -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`, diff --git a/netlify.toml b/netlify.toml index 854d247..c8db1ca 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] - command = "gatsby build" - publish = "public" + command = "yarn build" + publish = "public/" diff --git a/src/components/layout.tsx b/src/components/layout.tsx index 0d69a68..50a8c45 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -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 { @@ -28,18 +28,18 @@ const Layout = ({ children, ...props }: iLayoutProps) => { `) return ( -
+ <>
{children}
-
+ ) }