Add Mosaic to Bear Blog
Use Bear Blog's meta_image attribute to give each post a Mosaic OG image.
Before you start
- Have a blog on Bear Blog. Its address looks like
yourblog.bearblog.dev. - Sign in to Mosaic and add that hostname as a website. If your blog uses a custom domain, add the custom domain instead.
- Click Get code on the website's row and choose Copy image link.
Add an OG image to a post
Bear Blog is fully hosted, so you set the image in each post's attributes. There is nothing to build or deploy.
-
Create a post or edit an existing one.
-
Add a
meta_imageattribute. Set it to the Mosaic endpoint, with the post's full URL (encoded) as theurlparameter:title: How to integrate Mosaic in BearBlog.dev link: how-to-integrate-mosaic-in-bearblogdev meta_image: https://mosaic.praveenjuge.com/use?url=https%3A%2F%2Fyourblog.bearblog.dev%2Fhow-to-integrate-mosaic-in-bearblogdev -
Publish the post.
No link yet? Publish once so Bear Blog creates one from the title. Then add
that link to meta_image and publish again.
Pre-fill new posts (optional)
Bear Blog's post template fills in every new post. Add meta_image there:
title:
meta_image: https://mosaic.praveenjuge.com/use?url=https%3A%2F%2Fyourblog.bearblog.dev
___
In each new post, change the encoded URL to that post's address. If you leave the home page URL, every post shares the home page image.
After a theme change
Mosaic takes a new screenshot on the first request after an image is 30 days old. To update them sooner, choose Regenerate images from the website's … menu on the dashboard. Social platforms also cache previews, so use their card debugger or re-scrape tool to make them fetch the image again.

