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

Build a Gatsby Blog using the Cosmic JS source plugin #5783

Merged
merged 7 commits into from
Jun 15, 2018
Merged

Build a Gatsby Blog using the Cosmic JS source plugin #5783

merged 7 commits into from
Jun 15, 2018

Conversation

tonyspiro
Copy link
Contributor

Gatsby 🔥 + Cosmic 🛠 🚀

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jun 7, 2018

Deploy preview for using-drupal ready!

Built with commit ba23be2

https://deploy-preview-5783--using-drupal.netlify.com

@tonyspiro
Copy link
Contributor Author

@KyleAMathews got this random netlify link from @gatsbybot

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jun 7, 2018

Deploy preview for gatsbygram ready!

Built with commit befbafd

https://deploy-preview-5783--gatsbygram.netlify.com

@pieh
Copy link
Contributor

pieh commented Jun 7, 2018

- removed an intro to Gatsby, which isn't necessary on the Gatsby blog
- minor cleanup for clarity and grammar
- removed some language that can be problematic for beginners (e.g. "obviously")
- added links to relevant Gatsby concepts and APIs
@jlengstorf
Copy link
Contributor

@tonyspiro Thanks so much for sending this over! I just went through and made some edits to the post (see my commit message above for details), but overall this looks like a great intro to CosmicJS!

A quick clarification: in the tutorial, the source plugin config has a field for an API key. Is there a link or instructions for getting one of those keys? Do I need one to get data loaded from CosmicJS? Will my local blog have data if I don't create a CosmicJS account and add some blogs beforehand?

If this is a special demo so people don't need to create an account, it may be worth adding some clarification on that, because I found myself wondering if this tutorial would work for me without first creating a bunch of content to work with.

@tonyspiro
Copy link
Contributor Author

Thank you @jlengstorf! Your edits look good to me.

  1. For the API key, this is optional and can be set in the Cosmic JS Bucket dashboard. I can add a line to indicate where to do this (Your Cosmic JS Bucket > Settings > Basic Settings).

  2. As for the blog content, if you download the full GitHub repo, it defaults a connection to a demo Bucket with all of the demo data and it will work right out-of-the-box. To be able to edit content, you would need to install the app (with demo content) and config in the code to connect to this Bucket. I can add a line to explain this as well.

Let me know if you want me to add these. Thanks!

@jlengstorf
Copy link
Contributor

Hey, @tonyspiro — yes, please do! I think it will help keep things clear for readers. Thanks!

@tonyspiro
Copy link
Contributor Author

Hey @jlengstorf, changes pushed. Let me know if you need anything else, thanks!

@jlengstorf
Copy link
Contributor

@tonyspiro This looks great!

@shannonbux has been managing the blog publishing schedule, so I'll tag her in here for any remaining edits and/or pushing the button to take it live. 😄

jlengstorf
jlengstorf previously approved these changes Jun 10, 2018
@tonyspiro
Copy link
Contributor Author

Thank you @jlengstorf! And thank you @shannonbux, let me know if you need anything.

KyleAMathews
KyleAMathews previously approved these changes Jun 14, 2018
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Will release this tomorrow.

---
title: Build a Gatsby Blog using the Cosmic JS source plugin
date: "2018-06-07"
author: "Tony Spiro"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add canonicalLink here to your original post so you get to keep the google juice ;-)

canonicalLink: https://www.gatsbycentral.com/how-to-handle-comments-in-gatsby-blogs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @KyleAMathews! This is done.

@tonyspiro tonyspiro dismissed stale reviews from KyleAMathews and jlengstorf via 30a39be June 14, 2018 13:38
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@KyleAMathews KyleAMathews merged commit 4427cc7 into gatsbyjs:master Jun 15, 2018
KyleAMathews pushed a commit that referenced this pull request Jun 15, 2018
* Cosmic JS Gatsby Blog article

* Cosmic JS source plugin link

* fix: miscellaneous edits

- removed an intro to Gatsby, which isn't necessary on the Gatsby blog
- minor cleanup for clarity and grammar
- removed some language that can be problematic for beginners (e.g. "obviously")
- added links to relevant Gatsby concepts and APIs

* rm gatsby image, add config notes

* add canonicalLink

* Update index.md
@jlengstorf
Copy link
Contributor

Hiya @tonyspiro! 👋

This is definitely late, but on behalf of the entire Gatsby community, I wanted to say thank you for being here.

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. (We’ve got t-shirts and hats, plus some socks that are really razzing our berries right now.)
  2. If you’re not already part of it, we just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. You’ll receive an email shortly asking you to confirm. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If you have questions, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again! 💪💜

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.

5 participants