All integrations

gohugo.io

Collect testimonials on Hugo

Hugo sites are the fastest on the internet. Trustfolio is the only testimonial widget that doesn't add more JS than Hugo's entire static output. Paste the snippet in a partial and you're done.

Why Hugo users pick Trustfolio

Hugo powers dev tool docs, technical blogs, and performance-first marketing sites. Maintainers refuse to add heavyweight JS — Trustfolio at 4.8KB passes that bar.

A typical Hugo site ships <10KB JS. Trustfolio remains under 5KB and async.

Setup in under 2 minutes

  1. 1In your Hugo theme, create or edit layouts/partials/testimonials.html.
  2. 2Paste the Trustfolio embed snippet.
  3. 3Include the partial in your template with {{ partial "testimonials.html" . }}.
  4. 4hugo build and deploy.
<div data-trustfolio="YOUR_WIDGET_ID"></div>
<script src="https://trustfolio.dev/embed.js" async></script>

Frequently asked

Does Hugo support runtime JavaScript embeds?

Yes — Hugo outputs static HTML, and the browser executes the script tag at runtime.

Can I include the widget in Hugo shortcodes?

Yes — create a shortcode file and paste the snippet.

Will it work with Hugo Pipes or ESBuild?

The widget is external and doesn't need Hugo's asset pipeline.

Does it fit in Hugo theme components?

Yes, drop into any layout or partial.

Will Hugo minification break the widget?

No — minification acts on your HTML, not on the external script.

Try Trustfolio on Hugo

Free plan includes 15 testimonials, basic AI scoring, and the same sub-5KB widget. No credit card.

Start free