Skip to content

Fix-It Bot

Fix-It Bot is a Studio tool that scans your site and automatically fixes common formatting + lint issues in Markdown and YAML — the stuff that slowly accumulates over months/years and eventually turns into broken builds, inconsistent pages, and “why is this frontmatter different again?” debugging sessions.

Scale cleanup across your site

Run one scan to normalize formatting across content, data, and config — instead of manually fixing files one-by-one.

Stop “random build failures”

Catch YAML + Markdown issues early, and auto-fix what’s safe to fix before Hugo tries to build your site.

Standardize team edits

Keep frontmatter and Markdown consistent across contributors, editors, and collaboration workflows.

Friendly for non-YAML authors

Surfaces issues with file + line numbers and gives you “Open” + “Copy” actions to resolve anything that needs a human.


What it scans (and what it changes) Transparent

Section titled “What it scans (and what it changes) ”

Fix-It Bot scans HugoBlox’s core “editing surface area”:

  • Content: Markdown content under /content
  • Data & config: YAML under /data and /config

And it focuses on formatting + lint correctness:

  • YAML: normalize scalars/quoting and apply consistent formatting
  • Markdown: format with consistent rules, apply safe lint auto-fixes, and keep files build-friendly

Your site has been evolving for years, and now:

  • Frontmatter is inconsistent (indentation, quoting, lists, spacing)
  • Markdown is “almost right” but looks different page-to-page
  • Tiny issues accumulate until a deploy suddenly fails

Fix-It Bot brings things back to a consistent baseline without you doing a manual cleanup sprint.


  • Formats YAML (consistent indentation, safe quoting, normalization)
  • Formats Markdown (headings/lists/spacing, trailing whitespace, line endings)
  • Lints Markdown and applies safe auto-fixes when possible
  • Reports results clearly: files scanned, issues found, auto-fixed count, fix rate, and more
  • Flags manual issues with severity and (when available) line numbers
  • Skipping Markdown bodies that contain Hugo shortcodes ({{< ... >}}, {{% ... %}}) to avoid breaking them
  • Skipping Markdown files without YAML frontmatter (---) — HugoBlox content typically includes frontmatter, but this prevents accidental edits to “random” Markdown files
  • Rewriting your prose or “AI-editing” your content — it focuses on formatting + lint correctness

When to run Fix-It Bot Best practices

Section titled “When to run Fix-It Bot ”

Use Fix-It Bot right before you push a release. You’ll reduce “surprise” build failures caused by small YAML/Markdown issues.


  1. Open Studio

    In VS Code, open your HugoBlox site folder and open HugoBlox Studio.

  2. Go to Tools → Fix-It Bot

    In Studio, open the Tools page and expand Fix-It Bot.

  3. Choose scan options

    Pick what to fix and which files to scan (content vs data/config vs everything).

  4. Run the scan

    Click Run Fix-It Bot and watch progress as it scans your files.

  5. Review the results

    • Check how many issues were auto-fixed
    • Expand “Issues requiring attention” for anything manual
    • Use Open to jump straight to the file/line in VS Code

Scans YAML files under your project and applies formatting + lint auto-fixes.

Typical wins:

  • indentation consistency
  • safer quoting for YAML-breaking characters
  • more predictable structure

Fix-It Bot will auto-fix what it can, and then list anything that still needs a human.

Common reasons:

  • YAML parsing/linting found something ambiguous or risky to change automatically
  • Markdown linting rules surfaced a structural issue that needs intent (for example, heading levels)
  • Markdown body was skipped because it includes Hugo shortcodes

---
title: My Post
tags:[hugo, hugoblox] # inconsistent spacing
summary: A title: with a colon # needs quoting
---

Becomes:

---
title: My Post
tags: [hugo, hugoblox]
summary: "A title: with a colon"
---

Fix-It Bot can normalize the kinds of issues that quietly accumulate:

  • trailing whitespace
  • inconsistent list spacing
  • line endings across different OS/editor setups