Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING: Change config format on minimal-blog theme #234

Merged
merged 5 commits into from
Jan 23, 2020

Conversation

LekoArts
Copy link
Owner

Fixes #232

Coming from the above mentioned issue I quickly realized while reproducing the bug that:

  1. The large error output is coming from Gatsby itself (so an upstream issue)
  2. That Gatsby doesn't seem to have the same merging algorithm on siteMetadata like with theme options itself

So I decided to move the config options into the theme options and a MinimalBlogConfig type. I do the same with my emilia theme.

I also made navigation and optionalLinks optional (by adding checks to the components) so you can actually leave both empty now if you want to have a one-page for example.

Unfortunately I thought while creating this theme that siteMetadata would be sufficient but I've been wrong. Hence these drastic changes that are definitely breaking changes.

As an end-user you'll need to move the options to the theme options and should be good to go (if you haven't shadowed any affected components)

@LekoArts LekoArts added type: enhancement An issue or pull request that adds a feature or enhances a current one breaking change labels Jan 23, 2020
@LekoArts LekoArts merged commit 92e900d into master Jan 23, 2020
@LekoArts LekoArts deleted the minimal-blog-config branch January 23, 2020 13:53
LekoArts added a commit that referenced this pull request Jan 23, 2020
* Remove unused navigation hook

* Replace hooks

* New config hooks

* Move config in siteMetadata to own config

* Add README notices
LekoArts added a commit that referenced this pull request Jan 23, 2020
* Remove unused navigation hook
* Replace hooks
* New config hooks
* Move config in siteMetadata to own config
* Add README notices

BREAKING CHANGE:

The navigation and externalLinks options are no longer on the siteMetadata but now in the theme options itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change type: enhancement An issue or pull request that adds a feature or enhances a current one
Projects
None yet
1 participant