feat(oembed.php): add oembed api and implement in dependent pages

This commit is contained in:
Cory Dransfeldt 2025-05-10 17:19:43 -07:00
parent d95df47274
commit ec03d7ccef
No known key found for this signature in database
15 changed files with 173 additions and 3 deletions

View file

@ -4,6 +4,7 @@
<meta property="og:description" content="<?= cleanMeta($pageDescription ?? '{{ pageDescription | escape }}') ?>" />
<meta property="og:image" content="{{ globals.url }}<?= cleanMeta("/og/w800/{% appVersion %}" . ($ogImage ?? '{{ ogImage }}')) ?>" />
<meta property="og:url" content="<?= cleanMeta($fullUrl ?? '{{ fullUrl }}') ?>" />
<link rel="alternate" type="application/json+oembed" href="<?= cleanMeta($oembedUrl ?? '{{ oembedUrl }}') ?>" title="<?= cleanMeta($pageTitle ?? '{{ pageTitle }}') ?> • {{ globals.site_name }}">
<link rel="canonical" href="<?= cleanMeta($fullUrl ?? '{{ fullUrl }}') ?>" />
<?php if (!empty($pagination)): ?>
<?php if (!empty($pagination['href']['next'])): ?>