add search
This commit is contained in:
parent
d6acaa51cc
commit
62551ba57c
20
config.yml
20
config.yml
@ -70,6 +70,22 @@ params:
|
||||
Text: "Source code" # edit text
|
||||
appendFilePath: true # to append file path to Edit link
|
||||
|
||||
fuseOpts:
|
||||
isCaseSensitive: false
|
||||
shouldSort: true
|
||||
location: 0
|
||||
distance: 1000
|
||||
threshold: 0.4
|
||||
minMatchCharLength: 0
|
||||
keys: ["title", "summary"]
|
||||
|
||||
#Enabling Search
|
||||
outputs:
|
||||
home:
|
||||
- HTML
|
||||
- RSS
|
||||
- JSON # is necessary
|
||||
|
||||
markup:
|
||||
highlight:
|
||||
style: dracula
|
||||
@ -87,6 +103,10 @@ menu:
|
||||
name: about
|
||||
url: /about/
|
||||
weight: 20
|
||||
- identifier: Search
|
||||
name: search
|
||||
url: /search/
|
||||
weight: 30
|
||||
- identifier: french
|
||||
name: french
|
||||
url: https://wonderfall.space
|
||||
|
8
content/search.md
Normal file
8
content/search.md
Normal 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"
|
||||
---
|
@ -1 +1 @@
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self'; script-src 'self'; font-src 'self'; style-src 'self'; form-action 'none'; block-all-mixed-content; base-uri 'none'">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self'; script-src 'self'; font-src 'self'; style-src 'self'; connect-src 'self'; form-action 'none'; block-all-mixed-content; base-uri 'none'">
|
Loading…
Reference in New Issue
Block a user