在所有页面的标题后面都加入站点名称

This commit is contained in:
Chenx221 2024-03-30 13:44:05 +08:00
parent 83169ab5d5
commit 9e16b46d19
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ $this->registerCssFile('@web/css/fuckyou-navpadding.css');
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" class="h-100" <?= $darkMode === 1 ? 'data-bs-theme="dark"' : '' ?> > <html lang="<?= Yii::$app->language ?>" class="h-100" <?= $darkMode === 1 ? 'data-bs-theme="dark"' : '' ?> >
<head> <head>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title).' | '.Yii::$app->name ?></title>
<?php $this->head() ?> <?php $this->head() ?>
</head> </head>
<body class="d-flex flex-column h-100"> <body class="d-flex flex-column h-100">

View File

@ -24,7 +24,7 @@ $this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => Yii
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" class="h-100"> <html lang="<?= Yii::$app->language ?>" class="h-100">
<head> <head>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title).' | '.Yii::$app->name ?></title>
<?php $this->head() ?> <?php $this->head() ?>
</head> </head>
<body class="d-flex flex-column h-100"> <body class="d-flex flex-column h-100">

View File

@ -26,7 +26,7 @@ $darkMode = Yii::$app->user->isGuest ? 0 : Yii::$app->user->identity->dark_mode;
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" class="h-100" <?= $darkMode===1?'data-bs-theme="dark"':''?> > <html lang="<?= Yii::$app->language ?>" class="h-100" <?= $darkMode===1?'data-bs-theme="dark"':''?> >
<head> <head>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title).' | '.Yii::$app->name ?></title>
<?php $this->head() ?> <?php $this->head() ?>
</head> </head>
<body class="d-flex flex-column h-100"> <body class="d-flex flex-column h-100">