Last night
This commit is contained in:
parent
2906b01734
commit
42ee2d4c51
47 changed files with 848 additions and 478 deletions
|
|
@ -39,11 +39,11 @@ pub async fn og_middleware(request: Request, next: Next) -> Response {
|
|||
None => return response,
|
||||
};
|
||||
|
||||
// Build OG-injected HTML
|
||||
// Build OG-injected HTML (og=1 triggers heading overlay on screenshot)
|
||||
let og_image_url = if query_string.is_empty() {
|
||||
format!("{}/api/og-image", state.public_url)
|
||||
format!("{}/api/og-image?og=1", state.public_url)
|
||||
} else {
|
||||
format!("{}/api/og-image?{}", state.public_url, query_string)
|
||||
format!("{}/api/og-image?og=1&{}", state.public_url, query_string)
|
||||
};
|
||||
|
||||
let og_tags = format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue