Skip to content

Commit

Permalink
Added logic to show different shortcut in windows/mac
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Jan 12, 2022
1 parent 3a5264f commit 2267e25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/partials/sidebar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
>
<label for="search-by"><i class="fa fa-search"></i></label>
<input id="search-by" type="text" placeholder="{{ 'THEME_LEARN4_SEARCH_DOCUMENTATION'|t }}" readonly>
<span class="search-shortcode">⌘K</span>
<span class="search-shortcode">
{{ grav.browser.platform|starts_with('mac') ? '⌘K' : '<small>CTRL + K</small>' }}
</span>
</div>
<div class="search-options">
{% include 'partials/versions.html.twig' %}
Expand Down

0 comments on commit 2267e25

Please sign in to comment.