OG Image (Open Graph Image) is the preview image shown when a link is shared on social media or messaging apps. Having a well-designed OG image improves how your links appear when shared on Twitter/X, Facebook, LinkedIn, Slack, and other platforms.
Laioutr projects can use Nuxt OG Image to generate these images from Vue templates. It is not bundled with frontend-core and must be installed separately.
npx nuxi module add nuxt-og-image
Set your site URL using Nuxt Site Config:
// nuxt.config.ts
export default defineNuxtConfig({
site: {
url: 'https://yourstore.com',
},
});
Use defineOgImage() with SEO data from usePageVariant() to set per-page OG images:
<script setup lang="ts">
const pageVariant = usePageVariant();
defineOgImage({
component: 'OgImageDefault',
title: pageVariant.value.seo.title,
description: pageVariant.value.seo.description,
});
</script>
You can create custom OG image templates as Vue components in components/OgImage*.vue and reference them by name in the component field.
For custom templates, renderer options (Satori, Chromium), DevTools integration, and advanced configuration, see the Nuxt OG Image documentation.
Link Checker
Automatically scan your Laioutr frontend for broken links and SEO issues during development and build time.
Robots.txt
Control how search engines and crawlers interact with your Laioutr frontend using robots.txt, meta tags, and X-Robots-Tag headers. Configure globally and per-page via Studio.