Hugo
Get started with integrating Mosaic into your Hugo project.

Step 1

Add to your layout template:

{{ $baseURL := "https://mosaicimg.com/use?url=" }}
{{ $pageURL := .Page.Permalink }}
{{ $ogImageURL := printf "%s%s" $baseURL $pageURL }}
<meta property="og:image" content="{{ $ogImageURL }}">