feat: add Docsearch to 404 page

This commit is contained in:
George Cushen committed 2022-09-16 19:43:46 +01:00
1 parent 708b38cecc
commit 71f51091fb
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
name: 🐛 Bug Report
description: Something isn't working as expected? Report your bugs here.
labels: [bug]
labels: ['bug', 'needs triage']
body:
- type: markdown
attributes:
@@ -1,6 +1,5 @@
name: 🚀 Feature request
description: Suggest an improvement.
title: Suggest an improvement
labels: [proposal]
assignees: []
body:
+2
View File
@@ -9,6 +9,8 @@
<form class="d-flex align-items-center mb-3">
<input name="q" type="search" class="form-control" placeholder="{{ i18n "search_placeholder" }}" autocomplete="off">
</form>
{{ else if eq (lower site.Params.features.search.provider) "docsearch" }}
<div id="docsearch" style="margin-left: -16px" class="mb-2"></div>
{{ end }}
{{/* Suggest recently published pages to the user. */}}