Skip to content

Commit aaa7e09

Browse files
authored
Merge pull request kubernetes#50040 from SayakMukhopadhyay/search-home-refactor
Move the search bar in the homepage from the content to the layout
2 parents 8472f99 + 30bbb77 commit aaa7e09

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

content/en/_index.html

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
priority: 1.0
77
---
88

9-
{{< site-searchbar >}}
10-
119
{{< blocks/section class="k8s-overview" >}}
1210
{{% blocks/feature image="flower" id="feature-primary" %}}
1311
[Kubernetes]({{< relref "/docs/concepts/overview/" >}}), also known as K8s, is an open source system for automating deployment, scaling, and management of containerized applications.

layouts/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{{ define "main" }}
2+
{{ if .HasShortcode "site-searchbar" }}
3+
{{ warnf "The homepage of the language %s is using a deprecated shortcode site-searchbar. Please remove the shortcode. No other step is needed." .Lang }}
4+
{{ else }}
5+
<div class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
6+
{{partial "search-input" .}}
7+
</div>
8+
{{ end }}
29
{{ .Content }}
310
<section id="cncf">
411
<div class="main-section">

0 commit comments

Comments
 (0)