@ -43,27 +43,23 @@ final class ArticleCardCoverExtension extends AbstractExtension
@@ -43,27 +43,23 @@ final class ArticleCardCoverExtension extends AbstractExtension
return [
new TwigFunction('article_card_cover', $this->articleCardCover(...)),
new TwigFunction('article_og_image', $this->articleOgImage(...)),
new TwigFunction('site_og_image', $this->siteOgImage(...)),
];
}
/**
* Absolute URL + whether to emit og:image:width/height (1200×630) for the site default OG JPEG only.
* Branded site Open Graph image (home, category lists, base layout default): not tied to any article or author.
@ -72,6 +68,26 @@ final class ArticleCardCoverExtension extends AbstractExtension
@@ -72,6 +68,26 @@ final class ArticleCardCoverExtension extends AbstractExtension
];
}
/**
* Absolute URL + whether to emit og:image:width/height (1200×630) for the site default OG JPEG only.
*
* Unlike {@see articleCardCover}, this never uses the author’s Nostr profile picture: crawlers and
* in-app link previews should get the article hero or the branded {@see OG_FALLBACK_PACKAGE_IMAGE}.