Skip to content

Commit

Permalink
feat: reactivating search component
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusf-dev committed Jul 19, 2024
1 parent 73ae5fe commit cb32c70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const siteData: any = {
},

search: {
enabled: false,
enabled: true,
engine: "cmdk",
},

Expand Down
3 changes: 2 additions & 1 deletion components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {useState} from "react";
import {Separator} from "@/components/ui/separator";
import {Github, Menu, Moon, Sun} from "lucide-react";
import {useTheme} from "next-themes";
import Search from "@/plugins/search";

const Header = () => {
const {githubRepo, header: {logo, title, routes}} = siteData
Expand Down Expand Up @@ -74,7 +75,7 @@ const Header = () => {
</SheetContent>
</Sheet>
</div>

<Search/>
<Link href={githubRepo}>
<Button size={'icon'} variant={'ghost'}>
<Github size={20}/>
Expand Down

0 comments on commit cb32c70

Please sign in to comment.