-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.json
57 lines (57 loc) · 2.45 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "Static Custom Search",
"description": "This plugin provides website owners with an easy way to add a static search functionality to their site. By leveraging the feed.json and js-search javascript library, this plugin offers a fast and reliable search experience for users, without the need for a dynamic search engine. With this plugin, site owners can quickly and easily improve the user experience and help visitors find the information they need.",
"license": "GPL-3.0",
"author": "freaks-dev",
"version": "1.0.1",
"scope": "site",
"minimumPubliiVersion": "0.40.0",
"usePluginSettingsView": false,
"messageInOptions": {
"type": "info",
"text": "To enable the search feature, please make sure that both 'Search' and 'Search subpage' options are enabled in the Theme settings under the Search tab. Additionally, ensure that JSON Feed is enabled in the Site Settings under the RSS/JSON Feed. Without these settings enabled, the search feature may not work properly."
},
"requiredFeatures": ["customSearch"],
"config": [
{
"name": "jsonFeedUrl",
"label": "JSON Feed Url",
"note": "Enter the URL to the JSON feed of your website.",
"group": "Search configuration",
"value": "./feed.json",
"type": "text"
},
{
"name": "searchParam",
"label": "Search parameter",
"note": "You can change the default \"q\" search parameter if desired; recommended only for advanced users.",
"group": "Search configuration",
"value": "q",
"type": "text"
},
{
"name": "searchAutofocus",
"label": "Autofocus",
"group": "Theme integration",
"note": "When enabled, the autofocus attribute will be added to the input field to tell the browser to focus on this field when the page loads.",
"value": true,
"type": "checkbox"
},
{
"name": "searchPlaceholder",
"label": "Input placeholder",
"note": "",
"group": "Theme integration",
"value": "search...",
"type": "text"
},
{
"name": "searchSubmitLabel",
"label": "Submit button label",
"note": "",
"group": "Theme integration",
"value": "Submit",
"type": "text"
}
]
}