From 33d1ee9401a50657b51b66c01deff43b00b3c71a Mon Sep 17 00:00:00 2001 From: Sayak Mukhopadhyay Date: Sun, 23 Mar 2025 18:52:08 +0530 Subject: [PATCH] feat: remove the site-searchbar shortcode --- layouts/_default/search.html | 1 - layouts/index.html | 4 ---- layouts/shortcodes/site-searchbar.html | 3 --- 3 files changed, 8 deletions(-) delete mode 100644 layouts/shortcodes/site-searchbar.html diff --git a/layouts/_default/search.html b/layouts/_default/search.html index 0a68d142f6..34eec34e41 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -9,7 +9,6 @@ Do not use the `search-results-search` id elsewhere as it is used delete this element for pagefind/China users */}} -{{/* From shortcodes/site-searchbar.html which is used in the home page */}} diff --git a/layouts/index.html b/layouts/index.html index 9d2d026333..94fb602f9a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,11 +1,7 @@ {{ 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 }}
{{partial "search-input" .}}
-{{ end }} {{ .Content }}
{{ partial "cncf.html" . }} diff --git a/layouts/shortcodes/site-searchbar.html b/layouts/shortcodes/site-searchbar.html deleted file mode 100644 index 4431089fa3..0000000000 --- a/layouts/shortcodes/site-searchbar.html +++ /dev/null @@ -1,3 +0,0 @@ -
-{{partial "search-input" .}} -
\ No newline at end of file