Skip to content

Commit

Permalink
Updated site config, added new site config support for fonts, weights
Browse files Browse the repository at this point in the history
  • Loading branch information
thandaanda committed Aug 5, 2020
1 parent a55ffda commit 57a8096
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
68 changes: 67 additions & 1 deletion siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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'
},
]
}
};
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]":
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"
Expand Down

1 comment on commit 57a8096

@vercel
Copy link

@vercel vercel bot commented on 57a8096 Aug 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.