Search is only available in production builds. Try building and previewing the site to test it out locally.
This post is purely for testing the table of content, which should not be rendered, and the toggle button next to the post title should not be displayed