Implement blog-only search
Relates to https://gitlab.com/gitlab-com/marketing/corporate-marketing/issues/1732
Briefly describe the request
Add a search box on the blog which searches just blog posts.
Describe the relevant location and pages
Blog navigation sidebar https://about.gitlab.com/blog/
What problem is this feature trying to solve?
It's difficult to find preexisting content on the blog.
What are the KPI (Key Performance Indicators)
Searches performed via this new component.
Implementation:
-
Request the relevant Swiftype tag from @brandon_lyon - Overview > setup > install search > copy the
_st('install', 'string', 'version');
value. _st('install','5geYbhTxNzL5dsekC-B-','2.0.0');
- Overview > setup > install search > copy the
-
Examine our www-gitlab-com codebase to see how we built and segmented the whole-site vs handbook-only search. -
Note the if-else statement for page types and handbook vs company. You'll need to add another one for the blog engine. -
Duplicate and adapt the handbook search include for use on the blog. -
Add the search include to the blog sidebar in between the Subscribe and Categories sections. -
Adjust styles as necessary -
Briefly cross-browser check the changes on 4 screen sizes in Safari & Chrome (desktop, laptop, tablet, phone). This can be done using devtools, doesn't need to be hardware devices. -
Check and verify the functionality of the new search including that it's limited to the blog. -
Check to ensure preexisting search functionality is not negatively impacted by these updates. -
Assign to @brandon_lyon for review of code, design, and merge. -
Brandon to also verify that related cookiebot functionality works as expected. -
Brandon to briefly cross-browser check the changes on 4 screen sizes in Safari & Chrome (desktop, laptop, tablet, phone). This can be done using devtools, doesn't need to be hardware devices.
Edited by Brandon Lyon