Merge pull request #50199 from SayakMukhopadhyay/remove-site-searchbar-shortcode

Remove the site-searchbar shortcode
pull/50506/head
Kubernetes Prow Robot 2025-04-15 10:49:07 -07:00 committed by GitHub
commit f6a6e1c5e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 8 deletions

View File

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

View File

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

View File

@ -1,3 +0,0 @@
<div class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
{{partial "search-input" .}}
</div>