Medium like blog template made with (Vue 3 + Typescript) with Dark mode.
This template is made by Vitesse starter template. It has a pretty great setup with markdown support out of the box. Check out the github repository for more information.
Clone this repository and install pnpm
git clone https://github.com/shamscorner/vite-medium-like-blog-ts.git
pnpm install
Just run and visit http://localhost:3333
pnpm dev
To build the App, run
pnpm build
And you will see the generated file in dist
that ready to be served.
- src
- blog
- components
- BlogScaffold.vue
- pages
- blog
- data.json
- index.vue
- some-markdown-file-1.md
- some-markdown-file-2.md
- some-markdown-file-3.md
- so on . . .
- blog
- components
- common
- blog
Follow the provided demo markdown file under /src/blog/pages/blog/
to setup your article. If you need to change the default design, you can change in the /src/blog/components/BlogScaffold.vue
file. Also don't forget to add the article index object into the /src/blog/pages/blog/data.json
file. Modify the data.json
file according to your articles. However, keep the object structure as mentioned in the data.json
file. Finally, you can change the home blog page if you want. You will find the file in here, /src/blog/pages/blog/index.vue
.
Go to Netlify and select your clone, OK
along the way, and your App will be live in a minute.