page.templateData. The template keeps the canvas at 1200 × 630 pixels and wraps long titles within the same layout.
Render one image per post
Install the Doczilla Node SDK withnpm install @doczilla/node. Set DOCZILLA_API_KEY and run node render-social-cards.mjs alongside the template.
render-social-cards.mjs
HTML
Save the HTML below associal-card.html. Handlebars escapes text passed through double braces.
Output

Short title

Long title wrapped within the same canvas
og:image tags. The sample clips titles that exceed three lines. Preview your longest titles before publishing. See the Templating guide for more ways to reuse layouts.