feat(oembed.php): add oembed api and implement in dependent pages
This commit is contained in:
parent
d95df47274
commit
ec03d7ccef
15 changed files with 173 additions and 3 deletions
|
@ -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'])): ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue