2 min read

Guides Collection

Table of Contents

Working with the guides collection

The guides collections is found in src/content/guides.

πŸ“ /src/content/guides
└── πŸ“ guide-1
      └── πŸ“„ index.md
└── πŸ“ guide-2
      └── πŸ“„ index.mdx

In the above example, two guide posts will be generated with the folder name representing the id.

  • https://example.com/guides/guide-1
  • https://example.com/guides/guide-2

Provide metadata

---
title: "Astro Micro";
description: "Astro Micro is an accessible theme for Astro.";
date: "2024-03-20";
draft: false;
---
FieldReqTypeRemarks
titleYesstringTitle of the content. Used in SEO and RSS.
descriptionYesstringDescription of the content. Used in SEO and RSS.
dateYesstringMust be a valid date string (able to be parsed).
draftNobooleanIf draft: true, content will not be published.
demoURLNostringLink to live guide demo, if available.
repoURLNostringLink to guide repo, if available.

All that’s left to do is write the content under the metadata.

---
title: "Astro Micro";
description: "Astro Micro is an accessible theme for Astro";
date: "2024-03-20";
draft: false;
---

## Astro Micro πŸ”¬
<!-- content -->