Skip to content

Commit

Permalink
feat: optimize homepage SEO (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
seatonjiang committed Dec 13, 2020
1 parent 8722776 commit 0632786
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions assets/css/kratos.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* 主题页眉
* @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License
* @version 2020.09.27
* @version 2020.12.14
*/
?>
<!DOCTYPE html>
Expand All @@ -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>
Expand Down

0 comments on commit 0632786

Please sign in to comment.