MODULES
...
Siteglide Modules
Blog

Browse by Keyword

4min
the article will show you how to adapt your liquid syntax and blog layouts to allow the user to search for posts by keyword introduction you can also allow the user to search for blog posts by keyword this requires a slightly different liquid parameter from the other navigation methods, but you can use both parameters if you choose liquid syntax although all other blog navigation options require you to set the use adv search 'true' liquid parameter, keyword search requires the use search 'true' parameter {% include 'module' id '3' layout 'design system/1' per page 20 use search 'true' %} if you wish to use both types of navigation for your blog, you can set both types of search parameter to 'true' {% include 'module' id '3' layout 'design system/1' per page 20 use search 'true' use adv search 'true' %} html and javascript syntax this code can be included in one of your blog navigation layouts keyword search will be activated if you've set the liquid parameter above and the javascript below sets the keyword parameter in the url search posts by keyword add search keyword {% comment %}this example function will search for posts in the future with this keyword you'll need to use the "use search" and "use adv search" parameters in your liquid tag {% endcomment %}