Guide

Add webmentions to Hugo

Show Bluesky and Mastodon replies on a Hugo blog

  1. 1

    Add your domain in wbmntn and copy the two-line snippet.

  2. 2

    Paste it into layouts/partials/head.html.

  3. 3

    Rebuild the site, then verify the domain in wbmntn.

Hugo renders <head> from layouts/partials/head.html. Add the snippet there so it appears on every page.

Endpoint

GET https://wbmntn.com/domains/your-domain.com/mentions.json

Embed

npm install @wbmntn/mentions