HubSpot provides a default module to perform a site search. By default it searches website pages and blog posts. But what if you want to override this and only search blog posts? Below is an embed snippet to help you do just that.
Usage Snippet Verbose Example
{% module 'site_search' path='@Hubspot/search_input', label='Search', content_types={ 'website_pages': False, 'landing_pages': False, 'blog_posts': True, 'knowledge_articles': False }, include_search_button=True, placeholder='placeholder', field_label='label' no_wrapper=True %}