If you couldn't tell from the GitHub repo page, this starter is built off another starter called astro-minimal-starter
.
I decided to make my own starter because I wanted to make a couple changes to the base template. These are the changes I've made:
- minor SEO adjustments
- store post/page data in
src/data/posts
- add Netlify CMS
- add Netlify Redirects
- add Netlify Redirects
- add Tailwind
- write components in React & TypeScript
One thing to note about Pages vs Posts. All posts (i.e. blog posts) live in /src/data/posts
and are Markdown files. Pages live under /src/pages
and can be Markdown or Astro components.
In the past, I've had some pages live next to blog posts, but I find that more confusing from a maintainence perspective.
yarn
yarn start
To access Netlify CMS, you need to run the proxy server in a separate terminal:
npx netlify-cms-proxy-server
See here for more information.
yarn build
Navigate to src/data/site.ts
and edit to match your site's information.
Start writing new blog posts in Markdown at src/data/posts/
.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!