Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
require(`dotenv`).config()
require(`dotenv`).config({
path: `.env`,
})

const shouldAnalyseBundle = process.env.ANALYSE_BUNDLE
const googleAnalyticsTrackingId = process.env.GOOGLE_ANALYTICS_ID

module.exports = {
siteMetadata: {
// You can overwrite values here that are used for the SEO component
// You can also add new values here to query them like usual
// Of course you can also add new values here to query them like usual
// See all options: https://github.com/LekoArts/gatsby-themes/blob/master/themes/gatsby-theme-cara/gatsby-config.js
siteTitleAlt: `Cara - Gatsby Starter Portfolio`,
},
flags: {
FAST_DEV: true,
siteTitleAlt: `Bryan Guner Portfolio`,
},
plugins: [
{
resolve: `@lekoarts/gatsby-theme-cara`,
// See the theme's README for all available options
options: {},
},
googleAnalyticsTrackingId && {
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GOOGLE_ANALYTICS_ID,
Expand All @@ -30,19 +28,19 @@ module.exports = {
options: {
name: `Cara - @lekoarts/gatsby-theme-cara`,
short_name: `Cara`,
description: `Playful and Colorful One-Page portfolio featuring Parallax effects and animations`,
description: `My web development portfolio created with gatsby and react.`,
start_url: `/`,
background_color: `#141821`,
theme_color: `#f6ad55`,
display: `standalone`,
icons: [
{
src: `/android-chrome-192x192.png`,
src: `/apple-touch-icon-180x180.png`,
sizes: `192x192`,
type: `image/png`,
},
{
src: `/android-chrome-512x512.png`,
src: `/apple-touch-icon-152x152.png`,
sizes: `512x512`,
type: `image/png`,
},
Expand All @@ -61,4 +59,4 @@ module.exports = {
},
},
].filter(Boolean),
}
}