1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2024-09-30 22:42:47 -04:00

Add search

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-07-18 02:54:58 -04:00 committed by tommytran732
parent dad9c2dfcc
commit bfcf1fd204
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
2 changed files with 21 additions and 1 deletions

View File

@ -78,7 +78,15 @@ params:
distance: 1000
threshold: 0.4
minMatchCharLength: 0
keys: ["title", "permalink", "summary", "content"]
keys: ["title", "content"]
#Enabling Search
outputs:
home:
- HTML
- RSS
- JSON # is necessary
menu:
main:
- identifier: Knowledge Base
@ -97,6 +105,10 @@ menu:
name: Providers
url: /providers/
weight: 40
- identifier: Search
name: Search
url: /search/
weight: 50
privacy:
youtube:

8
content/search.md Normal file
View File

@ -0,0 +1,8 @@
---
title: "Search" # in any language you want
layout: "search" # is necessary
# url: "/archive"
# description: "Description for Search"
summary: "search"
placeholder: "Enter your search query"
---