Skip to content

Commit b3e9c11

Browse files
committed
cmd k for Ask AI
1 parent 54a00f4 commit b3e9c11

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

hugo_stats.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@
625625
"w-2",
626626
"w-3",
627627
"w-30",
628+
"w-32",
629+
"w-35",
628630
"w-3items-center",
629631
"w-40",
630632
"w-5",

layouts/partials/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
data-user-analytics-fingerprint-enabled="true"
7575
data-bot-protection-mechanism="hcaptcha"
7676
data-website-id="{{ site.Params.kapa.id }}"
77+
data-modal-open-on-command-k="true"
7778
></script>
7879
{{/* preload Roboto Flex as it's a critical font: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload */}}
7980
<link

layouts/partials/search-bar.html

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,8 @@
44
@click.outside="open = false;"
55
@keyup.escape.window="open = false"
66
id="search-bar"
7-
class="relative w-40 items-center flex"
7+
class="relative w-32 items-center flex"
88
>
9-
<div id="search-bar-keyboard-shortcuts"
10-
class="text-sm flex items-center"
11-
>
12-
<div>
13-
<span x-show="navigator.platform == 'MacIntel'" class="icon-svg icon-sm">{{ partialCached "icon"
14-
"keyboard_command_key" "keyboard_command_key" }}</span>
15-
<span x-show="navigator.platform != 'MacIntel'" class="icon-svg icon-sm">{{ partialCached "icon"
16-
"keyboard_control_key" "keyboard_control_key" }}</span>
17-
</div>
18-
<div><span class="align-middle">K</span></div>
19-
</div>
20-
219
<input
2210
x-ref="searchBarInput"
2311
type="search"

0 commit comments

Comments
 (0)