Handling date logic for search. Added gallery and mixitup plugins