Meta tags not appearing
Check that the meta tags are in your layout’s <head>. View the page source (not browser DevTools) to confirm the tags are present in the raw HTML.
Make sure you’re editing the correct layout file. Middleman uses source/layouts/layout.erb by default, but pages can specify a different layout in frontmatter.
Wrong image showing
Social platforms and OpenGraph+ cache images. If you’ve updated your page but see the old image:
- Purge the cached image from the OpenGraph+ dashboard
- Wait a few minutes for the new image to render
- Clear the platform’s cache using their debugger tools (see below)
ERB not rendering
If you see raw <%= ... %> tags in your page source:
- Make sure your file has the
.erbextension (e.g.,layout.erb, notlayout.html) current_page.urlis only available during Middleman’s build process - it won’t work in plain HTML files- Run
middleman buildand check the output inbuild/to verify tags render correctly
Social platforms not updating
Social networks cache images aggressively. After purging from OpenGraph+, use each platform’s debugger to force a refresh:
- Facebook: Sharing Debugger
- Twitter/X: Card Validator
- LinkedIn: Post Inspector
Purging
To force OpenGraph+ to re-render an image:
- Go to your OpenGraph+ dashboard
- Navigate to the website’s cache page
- Enter the URL and purge
Testing
Use the preview tool in your OpenGraph+ dashboard to test how any page on your site renders as a social card. Paste a URL and see the result immediately.