Writing a post
Writing a new article with AstroLetter is easy. There are several example articles to show how it’s done, so feel free to look at those too.
Create a new file
To start, create a new file in the src/content/blog directory.
Meta data
Create the blog post meta data — it should have the following attributes.
---
title: 'The main title of your article'
description: 'A longer description of your article'
pubDate: 'Jul 22 2022'
heroImage: '/blog-image.png'
authorName: 'Your Name'
authorPicture: '/author_profile.png'
---Images can be sourced externally (ie. with a different URL to your blog) or they can be hosted with your blog, like in the config above.
Adding an image
Simply place any images into the public directory of the project, and they will be hosted along with your blog.
Write your blog post
After the meta data is added, you can write your article using standard Markdown formatting. For a complete introduction to Markdown, you should take a look at the official AstroJS documentation: https://docs.astro.build/en/guides/markdown-content/