1
0

add search

This commit is contained in:
Wonderfall 2022-07-29 02:20:24 +02:00
parent d6acaa51cc
commit 62551ba57c
3 changed files with 29 additions and 1 deletions

View File

@ -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
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"
---

View File

@ -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'">