Christoph Kieslich

GitHub Copilot instructions

Give Copilot the context it needs to write frontmatter for an Astro blog.

Use GitHub Copilot instructions to generate Astro blog post frontmatter

Edit .github/copilot-instructions.md

Customize the instructions to reflect your frontmatter definition.

// .github/copilot-instructions.md

# Copilot Instructions

## Blog Posts

We store blog posts in the `src/content/blog` directory. Each post needs YAML frontmatter. Use the description for an SEO-friendly summary of the post, no longer than 150 words.

```yaml
---
author: Christoph Kieslich
date: "2024-03-22"
title: Getting started with a new Astro homepage
featured: true
draft: false
tags:
  - docs
description: Short description, maximum 150 words
---
```

The example uses the frontmatter schema from this site in 2024. Adapt the fields to your own content model. For current support and setup details, see GitHub’s documentation on repository instructions.

More from the workbench.

Explore all projects