-
-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Change config format on minimal-blog theme (#234)
* Remove unused navigation hook * Replace hooks * New config hooks * Move config in siteMetadata to own config * Add README notices
- Loading branch information
Showing
18 changed files
with
227 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,28 @@ | ||
const newsletterFeed = require(`./src/utils/newsletterFeed`) | ||
|
||
module.exports = options => { | ||
const showLineNumbers = options.showLineNumbers || true | ||
|
||
return { | ||
siteMetadata: { | ||
siteTitle: `Lupin`, | ||
siteTitleAlt: `Minimal Blog - @lekoarts/gatsby-theme-minimal-blog`, | ||
siteHeadline: `Minimal Blog - Gatsby Theme from @lekoarts`, | ||
siteUrl: `https://minimal-blog.lekoarts.de`, | ||
siteDescription: `Typography driven, feature-rich blogging theme with minimal aesthetics. Includes tags/categories support and extensive features for code blocks such as live preview, line numbers, and line highlighting.`, | ||
siteLanguage: `en`, | ||
siteImage: `/banner.jpg`, | ||
author: `@lekoarts_de`, | ||
externalLinks: [ | ||
{ | ||
name: `Twitter`, | ||
url: `https://twitter.com/lekoarts_de`, | ||
}, | ||
{ | ||
name: `Instagram`, | ||
url: `https://www.instagram.com/lekoarts.de/`, | ||
}, | ||
], | ||
navigation: [ | ||
{ | ||
title: `Blog`, | ||
slug: `/blog`, | ||
}, | ||
], | ||
showLineNumbers, | ||
module.exports = options => ({ | ||
siteMetadata: { | ||
siteTitle: `Lupin`, | ||
siteTitleAlt: `Minimal Blog - @lekoarts/gatsby-theme-minimal-blog`, | ||
siteHeadline: `Minimal Blog - Gatsby Theme from @lekoarts`, | ||
siteUrl: `https://minimal-blog.lekoarts.de`, | ||
siteDescription: `Typography driven, feature-rich blogging theme with minimal aesthetics. Includes tags/categories support and extensive features for code blocks such as live preview, line numbers, and line highlighting.`, | ||
siteLanguage: `en`, | ||
siteImage: `/banner.jpg`, | ||
author: `@lekoarts_de`, | ||
}, | ||
plugins: [ | ||
{ | ||
resolve: `@lekoarts/gatsby-theme-minimal-blog-core`, | ||
options, | ||
}, | ||
{ | ||
resolve: `gatsby-plugin-feed`, | ||
options: newsletterFeed, | ||
}, | ||
plugins: [ | ||
{ | ||
resolve: `@lekoarts/gatsby-theme-minimal-blog-core`, | ||
options, | ||
}, | ||
{ | ||
resolve: `gatsby-plugin-feed`, | ||
options: newsletterFeed, | ||
}, | ||
`gatsby-plugin-react-helmet`, | ||
`gatsby-plugin-typescript`, | ||
`gatsby-plugin-catch-links`, | ||
`gatsby-plugin-theme-ui`, | ||
], | ||
} | ||
} | ||
`gatsby-plugin-react-helmet`, | ||
`gatsby-plugin-typescript`, | ||
`gatsby-plugin-catch-links`, | ||
`gatsby-plugin-theme-ui`, | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.