Skip to content

Commit

Permalink
add search
Browse files Browse the repository at this point in the history
  • Loading branch information
2e0byo committed Aug 19, 2021
1 parent e90afa7 commit 7922f81
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "themes/beautifulhugo"]
path = themes/beautifulhugo
url = https://github.com/halogenica/beautifulhugo.git
[submodule "themes/hugo-search-fuse-js"]
path = themes/hugo-search-fuse-js
url = https://github.com/kaushalmodi/hugo-search-fuse-js.git
7 changes: 6 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title = "Jack of All Trades"
canonifyurls = true

DefaultContentLanguage = "en"
theme = "beautifulhugo"
theme = ["hugo-search-fuse-js", "beautifulhugo"]
metaDataFormat = "yaml"
pygmentsUseClasses = true
pygmentCodeFences = true
Expand Down Expand Up @@ -53,6 +53,11 @@ enableGitInfo = true
url = "page/about/"
weight = 2

[[menu.main]]
name = "search"
url = "search/"
weight = 1

# [[menu.main]]
# name = "Repairs"
# url = "categories/repairs"
Expand Down
7 changes: 7 additions & 0 deletions content/search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
+++
title = "Search"
layout = "search"
outputs = ["html", "json"]
[sitemap]
priority = 0.1
+++
1 change: 1 addition & 0 deletions themes/hugo-search-fuse-js
Submodule hugo-search-fuse-js added at 8ae108

0 comments on commit 7922f81

Please sign in to comment.