mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-26 22:19:43 -08:00
Fix parsing issues of status page's og tags
This commit is contained in:
parent
e241728419
commit
c12b06348b
|
@ -60,8 +60,11 @@ class StatusPage extends BeanModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
// OG Meta Tags
|
// OG Meta Tags
|
||||||
head.append(`<meta property="og:title" content="${statusPage.title}" />`);
|
let ogTitle = $("<meta property=\"og:title\" content=\"\" />").attr("content", statusPage.title);
|
||||||
head.append(`<meta property="og:description" content="${description155}" />`);
|
head.append(ogTitle);
|
||||||
|
|
||||||
|
let ogDescription = $("<meta property=\"og:description\" content=\"\" />").attr("content", description155);
|
||||||
|
head.append(ogDescription);
|
||||||
|
|
||||||
// Preload data
|
// Preload data
|
||||||
// Add jsesc, fix https://github.com/louislam/uptime-kuma/issues/2186
|
// Add jsesc, fix https://github.com/louislam/uptime-kuma/issues/2186
|
||||||
|
|
Loading…
Reference in a new issue