adding conditional statement for layout on search page

adding conditional statements in sass for layouts.