Fast and lightweight personal blog built with Astro and TailwindCSS hosted on AWS using S3 and CloudFront.
Production site is available at blog.petar-cv.com.
Light ☀️ and dark 🌙 mode are supported by default.
Any static assets, like images, can be placed in the public/
directory.
All blog posts are stored in src/content/blog
directory in markdown format.
Main Framework - Astro
Type Checking - TypeScript
Styling - TailwindCSS
Deployment - AWS
Code Formatting - Prettier
Linting - ESLint
- Create a folder for the new blog post.
- Create a new file in the folder with the name of the blog post.
- Write the blog post in markdown format.
- Place all the image you use in the same folder as the blog post and reference them using the following format
![image description](./image_name.png)
. - When you are done with the blog post, copy the folder to
src/content/blog
directory. - When you are satisfied with the blog post, commit and push the changes to the repository.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run prettier:check |
Check code format with Prettier |
npm run prettier:write |
Format codes with Prettier |
npm run prepare |
Set up the husky hooks |
npm run unlighthouse |
Runs Unlighthouse with local config |
Licensed under the BSD 3-Clause License, Copyright © 2023
Made with ❤️ by Petar Cvetko Voćanec and contributors.