Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
no posts message on index
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyspiro committed Jun 25, 2019
2 parents f2c92b2 + 92f1980 commit f0fc351
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
@@ -1,6 +1,7 @@
# Simple React Blog
![Simple React Blog](https://cosmicjs.com/uploads/76875fe0-af74-11e7-b864-313f959a776e-react-blog-screenshot.png)
### [View Demo](https://cosmicjs.com/apps/simple-react-blog/demo)
### Now includes revision preview support! See [instructions below ⬇️](#revision-preview)
### React + Next.js + GraphQL + Cosmic JS
This blog uses Next.js to create a Universal React blog. It connects to the Cosmic JS API via GraphQL. Manage your content from your Cosmic JS Bucket Dashboard. Simple.
### Getting Started
Expand All @@ -27,3 +28,15 @@ You can easily manage the content in your Simple React Blog website on Cosmic JS
3. Go to Your Bucket > Apps.
4. Install the [Simple React Blog](https://cosmicjs.com/apps/simple-react-blog).
5. Deploy your Blog to the Cosmic App Server at Your Bucket > Web Hosting.

### Revision Preview
Follow these steps to add revision preview to your Bucket:
1. [Log in to Cosmic JS](https://cosmicjs.com).
2. Go to Your Simple Blog Bucket > Posts > Settings
3. Scroll down to the Preview Link section and add the following link:
```
http://localhost:3000/[object_slug]?revision=[revision_id]
```
4. For production, replace `http://localhost:3000` with your URL.
Now when you "Save as Draft" on any Post, you can preview your changes by clicking the "Preview" link.
<img src="https://cosmic-s3.imgix.net/525f5290-96d5-11e9-86cd-6934fa7afa0f-Screen-Shot-2019-06-24-at-6.10.36-PM.png?w=800" width="300" />

0 comments on commit f0fc351

Please sign in to comment.