Skip to content

Commit

Permalink
theme: replace <div> with <header> for #menu-bar
Browse files Browse the repository at this point in the history
This replacement makes mdbook more semantically
correct and should remove "Light; Rust; Coal; Navy; Ayu. Title"
text from mdbook preview in Google search.
  • Loading branch information
vklachkov committed May 26, 2024
1 parent 94b922d commit c22c727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<div class="page">
{{> header}}
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar" class="menu-bar sticky">
<header id="menu-bar" class="menu-bar sticky">
<div class="left-buttons">
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
<i class="fa fa-bars"></i>
Expand Down Expand Up @@ -186,7 +186,7 @@
{{/if}}

</div>
</div>
</header>

{{#if search_enabled}}
<div id="search-wrapper" class="hidden">
Expand Down

0 comments on commit c22c727

Please sign in to comment.