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
|
@ -50,6 +50,9 @@ RewriteRule ^tags/([^/]+)(?:/([0-9]+))?/?$ tags/index.php [L]
|
|||
## open graph assets
|
||||
RewriteRule ^og/([a-z0-9\-]+)/([\d\.]+)/([a-f0-9\-]+)\.([a-z0-9]+)$ /api/og-image.php?id=$3&class=$1&v=$2&extension=$4 [L]
|
||||
|
||||
## oembed
|
||||
RewriteRule ^oembed/(.*)$ /api/oembed.php?url=https://www.coryd.dev/$1 [L,QSA]
|
||||
|
||||
{% for redirect in redirects -%}
|
||||
Redirect {{ redirect.status_code | default: "301" }} {{ redirect.source_url }} {{ redirect.destination_url }}
|
||||
{% endfor -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue