Writing content
By default, Astropi uses markdown files to create content, here is the supported syntax:
Frontmatter
Frontmatter is a block of YAML or JSON at the beginning of a file that is used to define metadata. In Astropi, frontmatter is used to define the title, date, abstract, and other metadata of a content.
Here is an example of frontmatter:
---
title: "Hello world!"
date: 2024-04-30
abstract: "This is an example of a blog post."
---
Typography
Headers
Note that the level 1 title is automatically added to the page title and the navigation.
## Level 2 title
### Level 3 title
Text
This is a paragraph.
This is another paragraph.
Emphasis
*italic*
**bold**
Lists
- Item 1
- Item 2
- Subitem 1
- Subitem 2
Links
[Link text](https://example.com)
Horizontal rule
---
Blocks
Images
![Alt text](https://example.com/image.jpg)
Code
`inline code`
Code block
\`\`\`ts
const example = "code block";
\`\`\`
Blockquote
> This is a blockquote.
Tables
| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1 | Cell 2 |