---
title: "Hugo — Markdown Mirrors"
description: "Add a Markdown output format to Hugo."
type: "page"
canonical: "https://audigeo.ai/docs/integrations/markdown-mirrors/hugo"
---

# Hugo — Markdown Mirrors

## Step 1 — Declare the output format

In `config.toml`:

```toml
[outputFormats.Markdown]
mediaType = "text/markdown"
isPlainText = true
suffixes = ["md"]

[outputs]
home = ["HTML", "Markdown"]
page = ["HTML", "Markdown"]
section = ["HTML", "Markdown"]
```

## Step 2 — Add a markdown template

`layouts/_default/single.md`:

```
---
title: {{ .Title | jsonify }}
description: {{ .Description | default .Summary | jsonify }}
type: "article"
canonical: {{ .Permalink | jsonify }}
published_at: "{{ .Date.Format "2006-01-02" }}"
---

# {{ .Title }}

{{ .RawContent }}
```

## Step 3 — llms-full.txt

`layouts/index.llms.txt` (with the "llms" output format declared similarly):

```
# {{ .Site.Title }} — LLM-friendly index

{{ range .Site.RegularPages }}
- {{ .Permalink }}.md
{{- end }}
```

## Verify

Run an AudiGEO audit. Target: `markdown_mirror` ≥ 7.
