Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishiosaur/mlnma
A notebook/blog with a hint of machine learning.
https://github.com/rishiosaur/mlnma
cms javascript ml next
Last synced: 1 day ago
JSON representation
A notebook/blog with a hint of machine learning.
- Host: GitHub
- URL: https://github.com/rishiosaur/mlnma
- Owner: rishiosaur
- Created: 2020-05-03T11:21:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:53:01.000Z (about 2 years ago)
- Last Synced: 2024-12-30T01:31:50.559Z (about 2 months ago)
- Topics: cms, javascript, ml, next
- Language: JavaScript
- Homepage: https://mlnma.now.sh
- Size: 8 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A statically generated blog example using Next.js and Markdown
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.
## Demo
[https://next-blog-starter.now.sh/](https://next-blog-starter.now.sh/)
### Related examples
- [DatoCMS](/examples/cms-datocms)
- [Sanity](/examples/cms-sanity)
- [TakeShape](/examples/cms-takeshape)
- [Prismic](/examples/cms-prismic)## How to use
### Using `create-next-app`
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npm init next-app --example blog-starter blog-starter-app
# or
yarn create next-app --example blog-starter blog-starter-app
```### Download manually
Download the example:
```bash
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/blog-starter
cd blog-starter
```Install dependencies and run the example:
```bash
npm install
npm run dev# or
yarn install
yarn dev
```Your blog should be up and running on [http://localhost:3000](http://localhost:3000)! If it doesn't work, post on [GitHub discussions](https://github.com/zeit/next.js/discussions).
Deploy it to the cloud with [Vercel](https://vercel.com/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).