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

Statamic conversion #16

Merged
merged 10 commits into from
Mar 31, 2020
Merged

Statamic conversion #16

merged 10 commits into from
Mar 31, 2020

Conversation

philsturgeon
Copy link
Collaborator

@philsturgeon philsturgeon commented Mar 25, 2020

First part of #13.

Run node convert.js and watch the magic happen. The script copies our links YAML and munges it into a format statamic is happy with.

After this is merged I'll figure out how to deploy this to api.protect.earth and have it running alongside the existing site, so that anyone who wants to use the API (awesome-earth, climatechoice and our new frontend #6) can do so without any rush or lock step deploy nonsense.

@philsturgeon philsturgeon marked this pull request as ready for review March 25, 2020 21:53
@philsturgeon philsturgeon changed the title Statamic WIP with migration Statamic conversion Mar 25, 2020
@philsturgeon philsturgeon mentioned this pull request Mar 26, 2020
Phil Sturgeon added 7 commits March 27, 2020 13:10
The migration will be:

1. rename the file to YYYY-MM-DD.title-slug.md
2. add
3. replace category slug with category id (found in content/collections/categories/carbon-reduction.md)
4. put file in content/collections/actions/
@philsturgeon philsturgeon merged commit ff518e5 into master Mar 31, 2020
@philsturgeon philsturgeon deleted the statamic branch March 31, 2020 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant