Skip to content

7.0.0: Configurable collections and Day.js

Compare
Choose a tag to compare
@bensmithett bensmithett released this 04 Aug 11:17
3d42644

Changes

See #17

  • The posts collection no longer has any special hardcoded behaviour. Instead it's just another collection.
    • Pages now receive a collections prop instead of a posts prop
    • The collection used to generate the JSON feed is configured in package.json with tropical.feedCollection
  • Collection sorting now uses Day.js under the hood. It's a dependency so it can be used for all your date and time needs.

Upgrade instructions (more info)

Merge upstream changes

First, configure this repo as a remote for your repo (you only need to do this once)

  git remote add template https://github.com/bensmithett/tropical.git

Then fetch & merge the latest changes, resolving any conflicts manually:

git fetch template
git merge template/master

or...

Manually update your code