title | description | created_at | og | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creating a Blog with QwikJS |
This qwikjs blog contains steps to create a qwikjs blog |
05/Feb/2024 02:40 |
|
- Create a new QwikJS project, give any name like
simple-blog
& choose an empty project to begin with.
$ npm create qwik@latest
$ cd simple-blog
- Utilizing MDX, create a dir
mkdir src/routes/blogs/first-blog
& add some blog content as Markdown to a fileindex.mdx
at the path.. like
---
title: First Blog
---
This is the first blog.
* One
* Two
* Three
-
npm start
& visit /blogs/blog-with-qwik/. -
npm i --save gray-matter
to be able to fetch Title from parsed MDX when making Bloglist -
Add tailwind support
npm run qwik add tailwind
.