# Writing Content (Insights)

## Writing Content

**Files:** `src/content/blog/<language>/` · **Skill level:** Beginner

Covena's blog is called **Insights**. Posts live in `src/content/blog/` and are published under `/insights/`. Each post is one `.mdx` file, named after its address: `src/content/blog/english/first-consultation-what-happens.mdx` is published at `/insights/first-consultation-what-happens/`.

<div class="border border-dark">
  ![The Covena insights page](/images/covena/insights.jpg)
</div>

### Write A Post
<Steps>

1. Copy a post in `src/content/blog/english/` and rename it to the new address, in lowercase with hyphens.

2. Change the frontmatter (below), then write the post under it in Markdown.

3. Save it with `draft: true` while you work. Drafts show in `npm run dev` but not in the built site.

4. Write the French and Arabic versions with the **same file name** in `src/content/blog/french/` and `src/content/blog/arabic/`, or delete the copies there if you only publish in English.

5. Set `draft: false` when it's ready.

</Steps>

### Post Frontmatter
```yaml
---
title: "What happens at a first consultation"
description: "What we ask, what to bring and what you'll know by the end of a free 30-minute first call."
image: "/images/covena/blog/blog-laptop-notepad.jpg"
date: 2026-11-18
author: "Omar Haddad"
categories:
  - "Working with us"
tags:
  - "first consultation"
  - "getting started"
draft: false
---
```

| Field         | What it does                                                                                                     |
| ------------- | ---------------------------------------------------------------------------------------------------------------- |
| `title`       | The post title, on the card and the page                                                                         |
| `description` | The card text and the meta description                                                                           |
| `image`       | The card and header image, and the image when the post is shared. A path under `src/assets/images/`, written from `/images/` |
| `date`        | The publish date, written `YYYY-MM-DD`. Newest posts come first. It's shown in the language's date format       |
| `author`      | An attorney's name, exactly as the `title` of their file in `src/content/attorneys/`                             |
| `categories`  | One or more categories. Each gets a page at `/insights/category/<name>/`                                          |
| `tags`        | Any number of tags. Each gets a page at `/insights/tag/<name>/`                                                   |
| `draft`       | `true` keeps the post out of the built site, the lists, the RSS feed and `llms.txt`                              |
| `toc`         | Optional. Your own table of contents (see below)                                                                 |
| `excludeFromAi` | `true` leaves the post out of `llms.txt` and its Markdown copy                                                 |

The page also accepts the fields every page has, such as `metaTitle` and `metaDescription`. See [Pages](/covena/customization/pages/).

### Authors
There is no separate author list. A post's `author` is matched to an attorney: when it is the `title` of a file in `src/content/attorneys/<language>/`, the post shows an author box with that lawyer's photo, role and a link to their profile, and the post appears under "Insights by ..." on the profile. In French and Arabic the theme also finds the lawyer through the English file, so a translated name still finds the photo.

Any other name shows as plain text, with no photo or link.

### Categories And Tags
Write categories and tags as plain words. The theme turns each into an address in lowercase with hyphens: "Family & private client" becomes `/insights/category/family-private-client/`. The category chips on `/insights/` list every category in use, so a new category appears there when a post uses it.

Use the same spelling every time. "Property" and "property law" are two different categories.

### The Insights Pages
`src/content/blog/<language>/-index.md` holds the title, intro, image and meta description of `/insights/`. The list page shows:

- the newest post as a large featured card,
- the next posts in a grid, with page links when there are more (`/insights/page/2/` and on),
- the category chips,
- a newsletter panel (`src/content/sections/<language>/newsletter.md`, or a `newsletterSection` block in the `-index.md` to change it on this page only).

`pagination` in `[settings]` of `src/config/config.toml` sets how many posts go in each grid page. It ships as `6`. Category and tag pages use the same number.

Each post page has the post's reading time (counted at 220 words a minute), its category, a table of contents, the author box, and three related posts: posts that share a category first, then the newest. The related posts use the `bronze-panel` insights layout.

### Table Of Contents
By default a post's contents list is made from its `##` headings. To write your own, add `toc` with the id of each heading:

```yaml
toc:
  - slug: "booking-the-call"
    text: "Booking the call"
  - slug: "what-to-have-to-hand"
    text: "What to bring"
```

A heading's id is its text in lowercase with hyphens.

### RSS
Each language has a feed: `/insights/rss.xml`, `/fr/insights/rss.xml` and `/ar/insights/rss.xml`. It lists every published post. Set `[site] baseUrl` in `config.toml` before you launch so the links in the feed are right.

### Write In Markdown
Use `##` for section headings (the post title is the only `#`), `###` below them, `-` for lists, `1.` for steps, `**bold**`, and `[links](/fees/)`. Write internal links without a language, like `/fees/`: the theme adds `/fr/` or `/ar/` on those pages. A quote is a line starting with `>`, and a table is written with `|` columns.

See [File Formats](/covena/beginner/file-formats/) if Markdown is new to you.

### Shortcodes
In `.mdx` files you can use these components without importing them. `/components/` on your local site shows each one with the code that makes it.

**Button**: `color` is `navy` (default), `bronze`, `outline` or `link`.

```mdx
<Button label="Book a call" url="/consultation/" color="bronze" />
```

**Accordion**: a question that opens. Accordions with the same `group` open one at a time, and `expanded="true"` opens one at the start.

```mdx
<Accordion label="How much does the first call cost?" group="first-call" expanded="true">

Nothing. The first 30 minutes are free.

</Accordion>
```

**Tabs**:

```mdx
<Tabs>
  <Tab name="Fixed fee">One price agreed before we start.</Tab>
  <Tab name="Hourly rate">For work that's hard to predict.</Tab>
</Tabs>
```

**Notice**: a box with a title. `type` is `info`, `warning`, `success` or `error`.

```mdx
<Notice type="warning" title="Time limits">
Most employment claims must start within three months less one day.
</Notice>
```

**ListCheck**: a list with check marks.

```mdx
<ListCheck>

- **Fixed fees where we can.** You know the cost before we start.
- **One named lawyer.** The same person from the first call to the last letter.

</ListCheck>
```

**Testimonial**: a quote with a name.

```mdx
<Testimonial customerName="A. Rahman" customerRole="Business owner, Birmingham">
The quote.
</Testimonial>
```

**ArticleFigure**: one image with a caption. A plain Markdown image (`![alt text](/images/covena/office/office-hallway.jpg)`) works too.

```mdx
<ArticleFigure
  imageSrc="/images/covena/office/office-law-library.jpg"
  imageAlt="Wooden shelves of bound law volumes"
  caption="The library in our London office"
/>
```

**ImageList and ImageItem**: images in a grid. `width="1/2"` sets the share of the row, and `videoSrc="<YouTube id>"` puts a play button on the image that opens the video.

```mdx
<ImageList>
  <ImageItem imageSrc="/images/covena/meetings/meeting-team-table.jpg" imageAlt="Lawyers around a meeting table" />
  <ImageItem width="1/2" imageSrc="..." imageAlt="..." />
  <ImageItem width="1/2" imageSrc="..." imageAlt="..." />
</ImageList>
```

**VideoInline**: a YouTube or Vimeo video in the text, loaded from the privacy-friendly player.

```mdx
<VideoInline src="<YouTube id>" provider="youtube" />
```

Images go in `src/assets/images/` and are written from `/images/`, so `src/assets/images/covena/blog/my-photo.jpg` is `/images/covena/blog/my-photo.jpg`. See [Icons & Images](/covena/customization/icons-images/).

<Aside type="caution" title="MDX is stricter than Markdown">
  In `.mdx` files, `{`, `}` and `<` have a special meaning. If the build fails
  on a line with one of them in normal text, put the text in backticks, or
  write `\{` and `&lt;`. Leave a blank line inside a shortcode before and after
  Markdown text, as in the Accordion example above.
</Aside>

### Before You Publish
The nine sample posts are written for the sample firm and its sample lawyers. Delete them or rewrite them, in every language. Legal guides go out of date, so check the facts in any post you keep, and name the country the advice applies to.

### Do It With AI
```text
Write an insight post for the Covena site about [TOPIC], as an .mdx file in
src/content/blog/english/. Match the frontmatter of the other posts there (title, description,
image, date, author, categories, tags, draft). Set author to "[ATTORNEY NAME]", exactly as the
title of their file in src/content/attorneys/english/. Use ## headings, one <Notice> and one
<ListCheck> where they help. Keep it under [N] words and use only the facts I give you: [FACTS].
Set draft: true. Then write the French and Arabic versions with the same file name.
```