Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dirtyf/tina-quickstart
Next.js Blog Starter connected to Tina Cloud
https://github.com/dirtyf/tina-quickstart
nextjs tinacms vercel
Last synced: about 1 month ago
JSON representation
Next.js Blog Starter connected to Tina Cloud
- Host: GitHub
- URL: https://github.com/dirtyf/tina-quickstart
- Owner: DirtyF
- Created: 2021-08-03T20:51:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-05T16:33:58.000Z (over 3 years ago)
- Last Synced: 2024-10-29T13:55:43.015Z (3 months ago)
- Topics: nextjs, tinacms, vercel
- Language: JavaScript
- Homepage: https://tina-quickstart-sigma.vercel.app
- Size: 560 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A statically generated blog example using Next.js, Markdown and Tina Cloud
This example showcases Next.js's [Static Generation](https://nextjs.org/docs/basic-features/pages) feature using Markdown files as the data source.
The blog posts are stored in `/_posts` as Markdown files with front matter support. Adding a new Markdown file in there will create a new blog post.
To create the blog posts we use [`remark`](https://github.com/remarkjs/remark) and [`remark-html`](https://github.com/remarkjs/remark-html) to convert the Markdown files into an HTML string, and then send it down as a prop to the page. The metadata of every post is handled by [`gray-matter`](https://github.com/jonschlinkert/gray-matter) and also sent in props to the page.
The content can be managed collaboratively from the site thanks to [TinaCMS](https://tina.io).
## Preview
https://tina-quickstart-sigma.vercel.app/
### Full guide to get this starter running with Tina Cloud
- [Add TinaCMS to Next.js Blog Starter](https://tina.io/guides/tina-cloud/add-tinacms-to-existing-site/overview/)
# Notes
This blog-starter uses [Tailwind CSS](https://tailwindcss.com). To control the generated stylesheet's filesize, this example uses Tailwind CSS' v2.0 [`purge` option](https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css) to remove unused CSS.