-
Notifications
You must be signed in to change notification settings - Fork 344
Related blog component #3768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related blog component #3768
Conversation
@Blargian is attempting to deploy a commit to the ClickHouse Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
scripts/related-blogs/keywords.json
Outdated
@@ -0,0 +1,3180 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets not checkin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Lets default to false and replace the existing related blog posts which are static - if a page has current related, we'll show
- Move the keywords to the CMS and extract with Algolia
@gingerwizard have made the following changes:
Can always be better, but relevancy is substantially better now I think. |
@Blargian can we remove any existing related content recommendations. If you search for Related Content you will find some |
…into related_blog_component
Summary
Adds a related blog component which uses the keywords on each page to search for related blog posts.
Overview:
src/components/RelatedBlogs
which queries Algolia blogs index and displays the resultsRelatedBlogs
tosrc/theme/DocItem/Layout/index.js
such that it shows at the bottom of each page. If a page specifiesshow_related_blogs: true
Notes:
To do:
docusaurus.config.js
so that it's not necessary to addshow_related_blogs
to each page individually (eg. we would want to exclude all reference docs).Checklist