All the content is written in markdown (.md) and grouped as blog
or projects
in the content
directory. All the default markdown syntax will work. You also have a few example custom markdown elements like YouTube embed, Twitter embed, etc. You can create your own custom components too in two easy steps.
- Add a markdoc config. Check out the markdoc config in src/lib/markdoc/config.ts to learn how to add custom components.
- Add a component to render your custom component. Check out the Renderer in src/components/Renderer.astro.
- All content is static and everything is straight forward. Change whatever you need to change.
- Delete or update the content in
content/{content-group}
.content-group
could beblog
,projects
oranything
. - (Optional) If you need more content types like Notes, just create a new dir in
content
and add a new frontmatter validator like src/lib/markdoc/blog/frontmatter.
yarn build
will generate a static website in dist
dir. I host it with Netlify.