{{ if default true .Site.Params.BookSearch }}
<div class="magic">
<div class="book-search">
  <input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" />
  <div class="book-search-spinner spinner hidden"></div>
  <ul id="book-search-results"></ul>
</div>
<div class="book-switch">
  <label class="switch">
    <input id="dark-mode-checkbox" type="checkbox" onchange="darkmode()">
    <span class="slider"></span>
  </label>
</div></div>
{{ end }