mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 23:02:53 +01:00
feat: i18n, page title
(cherry picked from commit 0d9fc72bee009c591400055725680a6a0f5a9c83)
This commit is contained in:
@@ -54,6 +54,11 @@ if (!banner || typeof banner !== 'string' || banner.trim() === '') {
|
||||
// TODO don't use post cover as banner for now
|
||||
banner = viConf.banner.url;
|
||||
|
||||
let pageTitle = getConfig().title;
|
||||
if (title) {
|
||||
pageTitle = `${title} - ${pageTitle}`;
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -61,6 +66,8 @@ banner = viConf.banner.url;
|
||||
<head>
|
||||
<ViewTransitions />
|
||||
|
||||
<title>{pageTitle}</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Astro description">
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
||||
Reference in New Issue
Block a user