feat: optimize homepage SEO (#259)

pull/321/head^2
Seaton Jiang 2020-12-14 00:52:50 +08:00
parent 872277649d
commit 0632786cee
No known key found for this signature in database
GPG Key ID: C1086BAE716FF138
2 changed files with 14 additions and 3 deletions

View File

@ -312,6 +312,17 @@ button:focus {
color: #fff;
}
.k-nav .navbar-brand h1 {
display: inherit;
padding: inherit;
color: inherit;
margin: inherit;
color: inherit;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
}
.k-nav .navbar-brand:focus,
.k-nav .navbar-brand:hover {
color: rgba(255, 255, 255, 0.8);

View File

@ -3,7 +3,7 @@
* 主题页眉
* @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License
* @version 2020.09.27
* @version 2020.12.14
*/
?>
<!DOCTYPE html>
@ -29,9 +29,9 @@
<a class="navbar-brand" href="<?php echo get_option('home'); ?>">
<?php
if (kratos_option('g_logo')){
echo '<img src="' . kratos_option('g_logo') . '">';
echo '<img src="' . kratos_option('g_logo') . '"><h1 style="display:none">' . get_bloginfo('name') . '</h1>';
}else{
bloginfo('name');
echo '<h1>' . get_bloginfo('name') . '</h1>';
}
?>
</a>