Install

Terminal
$ roq add plugin:og-card

Usage

Generate 1200×630 Open Graph preview cards from Qute SVG templates and inject og:image metadata automatically.

Installation

roq add plugin:og-card

Or add the Maven dependency:

<dependency>
    <groupId>io.quarkiverse.roq</groupId>
    <artifactId>quarkus-roq-plugin-og-card</artifactId>
    <version>${quarkus-roq.version}</version>
</dependency>

Configuration

quarkus.roq.plugin.og-card.include-paths=/about/
quarkus.roq.plugin.og-card.collections=posts
quarkus.roq.plugin.og-card.template=og-card/default-card.svg
quarkus.roq.plugin.og-card.site-name=My Site

Place custom card templates under templates/og-card/. See the plugin documentation for the full configuration reference.

Viewing your cards

In dev mode, open http://localhost:8080/og/about.png. With generator batch enabled, PNGs are written to target/roq/og/.