PulseDev for Hugo.Click it, fix the template.

Click any element in your running Hugo site and say what’s wrong. Your agent opens the template or partial behind it, proposes a diff, and live reload shows it after you approve.

Loads under hugo server only.

Last updated:

PulseDev on a running Hugo site: the Growth plan button is outlined with its selector, and a comment box asks the agent to restyle it.

Templates, partials and the lookup order.

Hugo builds each page from a base template, a page or list template and a set of partials, chosen through its lookup order. The HTML in your browser keeps no record of which file each block came from, so the agent works from the page URL, the content section and the markup you clicked.

Themes add a layer. If the markup comes from themes/<name>/layouts, editing the theme in place is fragile. Hugo lets a file in your own layouts folder override the theme file at the same path, and that’s usually the better fix. Say so in your note if you want it done that way.

One minute of setup.
None of it ships.

Hugo has no package.json, so Set up project can’t detect it. It falls back to looking for an index.html, finds none, and shows the tag for you to paste. Use the gated version below. More in the widget docs.

  1. Add

    Paste the tag into your base template.

    Put it before </body>: layouts/baseof.html on Hugo 0.146 and later, layouts/_default/baseof.html on older sites and many themes. hugo.IsServer is true only under hugo server.

    layouts/baseof.html
    {{ if hugo.IsServer }}
      <script src="http://localhost:3899/widget.js" data-token="YOUR_TOKEN"></script>
    {{ end }}
  2. Run

    Start hugo server.

    Hugo serves on localhost:1313 by default and adds its own live reload script. Open a page and wait for the PulseDev button.

    terminal
    $hugo server

Notes for
Hugo sites.

Where a fix should go depends on whether the problem is content, template or styles.

  • Theme overrides

    To change a theme’s template, copy it to the same path under your own layouts folder and edit the copy. Ask the agent for that explicitly when the markup comes from a theme.

  • Content or template?

    Copy mistakes live in content/, spacing and markup in layouts/. Say which one you mean, and the URL leads the agent to the right file.

  • Hugo Pipes and Sass

    If your styles go through Hugo Pipes, the CSS in the browser is compiled output. The agent should edit the source in assets/, not anything under public/.

  • Approve, then live reload

    hugo server watches layouts, content and assets. When you approve, the files change and the browser reloads on its own.

Hugo questions.

Does it work with Hugo modules?
Yes. PulseDev reads the rendered page, so modules don’t change the setup. To change a module’s template, the agent overrides it in your own layouts folder.
hugo.IsServer or site.IsServer?
Use hugo.IsServer. site.IsServer is deprecated in current Hugo releases.
Does it support multilingual sites?
Yes. The page URL goes along with your note, so the agent knows which language version you were looking at.
Will the tag end up on my live site?
Not with the hugo.IsServer check. A plain hugo build renders the condition as false.

Your Hugo site is running.Go point at the bug.

Download for macOS

Windows coming soon. Free to start.