Update server.js (#570)

tidy the code
This commit is contained in:
mikoxxxx 2024-02-24 00:12:52 +02:00 committed by GitHub
parent e0984ff0b7
commit 9f9574378f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ server
`<!doctype html>
<html lang="${runtimeConfig.LANG || 'en'}" class="${theme}">
<head>
<title >${runtimeConfig.META_TITLE || 'My Site'}</title>
<title>${runtimeConfig.META_TITLE || 'My Site'}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8" />
<meta property="og:type" content="siteweb" />
@ -119,10 +119,8 @@ server
}
${
runtimeConfig.OG_IMAGE
? `
<meta property="og:image" content="${runtimeConfig.OG_IMAGE}" />
<meta property="og:image:secure_url" content="${runtimeConfig.OG_IMAGE}" />
`
? `<meta property="og:image" content="${runtimeConfig.OG_IMAGE}" />
<meta property="og:image:secure_url" content="${runtimeConfig.OG_IMAGE}" />`
: ''
}
${