Clone the repository and install node modules.
git clone [email protected]:hrzafer/blog.git
cd blog
npm install
Once you've created a project and installed dependencies with npm install
, start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
This project uses @sveltejs/adapter-static@next
to generate static html files under build
folder. You can preview the production build with npm run preview
.
Run the following command to push all static files under build
to gh-pages
branch. This is where we publish our blog.
npm run deploy
To add a post add a my-new-awesome-post.md
file under src/routes/blog/
which will be accessible at <URL>/blog/my-new-awesome-post