From 57a80969dcb4e4179ecb8c3baf88e5ace23ad8e6 Mon Sep 17 00:00:00 2001 From: Keyur Date: Wed, 5 Aug 2020 19:38:23 +0530 Subject: [PATCH] Updated site config, added new site config support for fonts, weights --- package.json | 2 +- siteConfig.js | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++- yarn.lock | 7 +++--- 3 files changed, 72 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index bb7cbf7..b824b90 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "react-dom": "^16.13.0" }, "dependencies": { - "@draftbox-co/gatsby-wordpress-novela-theme": "https://github.com/draftbox-co/gatsby-wordpress-novela-theme/archive/draftbox-co-gatsby-wordpress-novela-theme-v1.0.27-alpha-3-gitpkg.tar.gz", + "@draftbox-co/gatsby-wordpress-novela-theme": "1.0.28", "dotenv": "^8.2.0", "gatsby": "2.20.24", "@draftbox-co/gatsby-plugin-crisp-chat-lazy": "^0.0.3", diff --git a/siteConfig.js b/siteConfig.js index ce07665..b952cfe 100644 --- a/siteConfig.js +++ b/siteConfig.js @@ -4,7 +4,8 @@ module.exports = { postsPerPage: 10, // Number of posts shown on paginated pages (changes this requires sometimes to delete the cache) siteTitleMeta: "Built with Draftbox", // This allows an alternative site title for meta data for pages. - siteDescriptionMeta: "New-age blogging platform", // This allows an alternative site description for meta data for pages. + siteDescriptionMeta: + "Lightning fast, secure front-end for your WordPress or Ghost blog, without coding", // This allows an alternative site description for meta data for pages. shareImageWidth: 1000, // Change to the width of your default share image shareImageHeight: 523, // Change to the height of your default share image @@ -15,6 +16,7 @@ module.exports = { themeColor: "#15171A", // Used for Offline Manifest apiUrl: "https://wordpress.theasdfghjkl.com", subscribeWidget: { + visible: true, title: "Subscribe to Draftbox", helpText: "Get the latest posts delivered right to your inbox.", successMessage: "Thanks for subscribing to Draftbox.", @@ -62,6 +64,12 @@ module.exports = { instagram: "https://www.instagram.com/", linkedin: "https://linkedin.com/", github: "https://github.com/draftbox-co", + pinterest: "", + youtube: "", + dribbble: "", + behance: "", + externalLink: "", + whatsapp: "", }, contactWidget: { title: "Contact Built with Draftbox", @@ -94,4 +102,62 @@ module.exports = { iconUrl: "favicon.png", coverUrl: "cover.jpg", alternateLogoUrl: "logo.png", + themeConfig: { + variables: [ + { varName: "--accent-color", value: "#6166DC" }, + { varName: "--accent-color-dark", value: "#E9DAAC" }, + { varName: "--success-color", value: "#46B17B" }, + { varName: "--success-color-dark", value: "#46B17B" }, + { + varName: "--merriweather-font", + value: `Merriweather`, + }, + { + varName: "--merriweather-font-bold", + value: `700`, + }, + { + varName: "--system-font", + value: `system-ui`, + }, + { + varName: "--system-font-normal", + value: `400`, + }, + { + varName: "--system-font-semibold", + value: `600`, + }, + { + varName: "--system-font-bold", + value: `700`, + }, + { + varName: "--monospace-font", + value: `Source Code Pro`, + }, + { + varName: "--monospace-font-normal", + value: `400`, + }, + ], + fonts: [ + { + family: "Merriweather", + variants: ["700"], + //subsets: ['latin'] + //text: 'Hello' + fontDisplay: "swap", + strategy: "selfHosted", // 'base64' || 'cdn' + }, + { + family: "Source Code Pro", + variants: ["400"], + //subsets: ['latin'] + //text: 'Hello' + fontDisplay: "swap", + strategy: "selfHosted", // 'base64' || 'cdn' + }, + ] + } }; diff --git a/yarn.lock b/yarn.lock index 104b68a..de1b520 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1148,9 +1148,10 @@ postcss "^7.0.17" postcss-js "^2.0.1" -"@draftbox-co/gatsby-wordpress-novela-theme@https://github.com/draftbox-co/gatsby-wordpress-novela-theme/archive/draftbox-co-gatsby-wordpress-novela-theme-v1.0.27-alpha-3-gitpkg.tar.gz": - version "1.0.27-alpha-3" - resolved "https://github.com/draftbox-co/gatsby-wordpress-novela-theme/archive/draftbox-co-gatsby-wordpress-novela-theme-v1.0.27-alpha-3-gitpkg.tar.gz#5984cc2ed5bcbdb1805ad500ef1c13b8bc6e8358" +"@draftbox-co/gatsby-wordpress-novela-theme@1.0.28": + version "1.0.28" + resolved "https://registry.yarnpkg.com/@draftbox-co/gatsby-wordpress-novela-theme/-/gatsby-wordpress-novela-theme-1.0.28.tgz#e3d444286e22b2642f0e5751e4accb368e03eae0" + integrity sha512-UGvYhCAlEUlGZKdQLoVz/ivag8k0rw8BUCFy2qEGOhLBknwF6JqTwo+T/49Z3Zmn+IpTzD8e3Y8QNXMck6o5wg== dependencies: "@blocks/kit" "^0.0.28" "@draftbox-co/gatsby-plugin-amp" "^0.2.4"