generated from queen-raae/gatsby-plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: add season start and end * feat: add pluginOptionsSchema for season * chore: update README with time included in date string * chore: blast - add seconds to end time string * chore: test max time in seconds * chore: add date-fns package * docs: update readme * fix: better defaults * feat: only do snow when in season * chore: full config of plugin in demo * chore: only rely on schema defaults * fix: catch all possible season errors Co-authored-by: Benedicte Raae <raae@raae.codes>
- Loading branch information
Showing
6 changed files
with
98 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
module.exports = { | ||
plugins: ["@raae/gatsby-plugin-let-it-snow"], | ||
plugins: [ | ||
{ | ||
resolve: "@raae/gatsby-plugin-let-it-snow", | ||
options: { | ||
colors: ["#fff", "#ffb6c1"], | ||
season: { | ||
start: new Date("December 2, 2023"), | ||
end: new Date("January 11, 2024"), | ||
}, | ||
}, | ||
}, | ||
], | ||
}; |
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