Skip to content

Commit 33d1ee9

Browse files
feat: remove the site-searchbar shortcode
1 parent f07bfe5 commit 33d1ee9

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

layouts/_default/search.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
delete this element for pagefind/China users
1010
*/}}
1111

12-
{{/* From shortcodes/site-searchbar.html which is used in the home page */}}
1312
<div id="search-results-search" class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
1413
{{partial "search-input" .}}
1514
</div>

layouts/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
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 }}
52
<div class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
63
{{partial "search-input" .}}
74
</div>
8-
{{ end }}
95
{{ .Content }}
106
<section id="cncf">
117
{{ partial "cncf.html" . }}

layouts/shortcodes/site-searchbar.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)