docs: move search input to navbar (#20551)

* remove search item from sidebar
* fix search for some docs languages

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
tokarchuk/v1.18
Norwin 2 years ago committed by GitHub
parent 498352c210
commit 68059ab697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/config.yaml
  2. 18
      docs/content/doc/help/search.de-de.md
  3. 6
      docs/content/doc/help/search.en-us.md
  4. 6
      docs/content/doc/help/search.fr-fr.md
  5. 18
      docs/content/doc/help/search.nl-nl.md
  6. 18
      docs/content/doc/help/search.pt-br.md
  7. 6
      docs/content/doc/help/search.zh-cn.md
  8. 6
      docs/content/doc/help/search.zh-tw.md
  9. 6
      docs/layouts/doc/search.html

@ -22,6 +22,7 @@ params:
minGoVersion: 1.18 minGoVersion: 1.18
goVersion: 1.19 goVersion: 1.19
minNodeVersion: 14 minNodeVersion: 14
search: nav
outputs: outputs:
home: home:

@ -0,0 +1,18 @@
---
date: "2019-11-12T16:00:00+02:00"
title: "Search"
slug: "search"
weight: 4
toc: false
draft: false
sitemap:
priority : 0.1
layout: "search"
---
This file exists solely to respond to /search URL with the related `search` layout template.
No content shown here is rendered, all content is based in the template layouts/doc/search.html
Setting a very low sitemap priority will tell search engines this is not important content.

@ -5,12 +5,6 @@ slug: "search"
weight: 4 weight: 4
toc: false toc: false
draft: false draft: false
menu:
sidebar:
parent: "help"
name: "Search"
weight: 4
identifier: "search"
sitemap: sitemap:
priority : 0.1 priority : 0.1
layout: "search" layout: "search"

@ -5,12 +5,6 @@ slug: "search"
weight: 4 weight: 4
toc: false toc: false
draft: false draft: false
menu:
sidebar:
parent: "help"
name: "Chercher"
weight: 4
identifier: "search"
sitemap: sitemap:
priority : 0.1 priority : 0.1
layout: "search" layout: "search"

@ -0,0 +1,18 @@
---
date: "2019-11-12T16:00:00+02:00"
title: "Search"
slug: "search"
weight: 4
toc: false
draft: false
sitemap:
priority : 0.1
layout: "search"
---
This file exists solely to respond to /search URL with the related `search` layout template.
No content shown here is rendered, all content is based in the template layouts/doc/search.html
Setting a very low sitemap priority will tell search engines this is not important content.

@ -0,0 +1,18 @@
---
date: "2019-11-12T16:00:00+02:00"
title: "Search"
slug: "search"
weight: 4
toc: false
draft: false
sitemap:
priority : 0.1
layout: "search"
---
This file exists solely to respond to /search URL with the related `search` layout template.
No content shown here is rendered, all content is based in the template layouts/doc/search.html
Setting a very low sitemap priority will tell search engines this is not important content.

@ -5,12 +5,6 @@ slug: "search"
weight: 4 weight: 4
toc: false toc: false
draft: false draft: false
menu:
sidebar:
parent: "help"
name: "搜索"
weight: 4
identifier: "search"
sitemap: sitemap:
priority : 0.1 priority : 0.1
layout: "search" layout: "search"

@ -5,12 +5,6 @@ slug: "search"
weight: 4 weight: 4
toc: false toc: false
draft: false draft: false
menu:
sidebar:
parent: "help"
name: "搜尋"
weight: 4
identifier: "search"
sitemap: sitemap:
priority : 0.1 priority : 0.1
layout: "search" layout: "search"

@ -11,12 +11,6 @@
<div class=" content"> <div class=" content">
<section class="resume-section p-3 p-lg-5 d-flex flex-column"> <section class="resume-section p-3 p-lg-5 d-flex flex-column">
<div class="my-auto" > <div class="my-auto" >
<form action="{{ "search" | absLangURL }}">
<label>Search:
<input id="search-query" name="s"/>
</label>
</form>
<br/>
<div id="search-results"></div> <div id="search-results"></div>
</div> </div>
</section> </section>

Loading…
Cancel
Save