Merge pull request #50199 from SayakMukhopadhyay/remove-site-searchbar-shortcode
Remove the site-searchbar shortcodepull/50506/head
commit
f6a6e1c5e8
|
@ -9,7 +9,6 @@ Do not use the `search-results-search` id elsewhere as it is used
|
||||||
delete this element for pagefind/China users
|
delete this element for pagefind/China users
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{/* From shortcodes/site-searchbar.html which is used in the home page */}}
|
|
||||||
<div id="search-results-search" class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
|
<div id="search-results-search" class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
|
||||||
{{partial "search-input" .}}
|
{{partial "search-input" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ if .HasShortcode "site-searchbar" }}
|
|
||||||
{{ warnf "The homepage of the language %s is using a deprecated shortcode site-searchbar. Please remove the shortcode. No other step is needed." .Lang }}
|
|
||||||
{{ else }}
|
|
||||||
<div class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
|
<div class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
|
||||||
{{partial "search-input" .}}
|
{{partial "search-input" .}}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
<section id="cncf">
|
<section id="cncf">
|
||||||
{{ partial "cncf.html" . }}
|
{{ partial "cncf.html" . }}
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
<div class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
|
|
||||||
{{partial "search-input" .}}
|
|
||||||
</div>
|
|
Loading…
Reference in New Issue