mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-02 01:18:30 +02:00
* update Customers page * minor tweaks * update card logo, move customers js * content and small fix (#2240) * add missing customers logos and partition --------- Co-authored-by: trean <trean.mi@gmail.com>
35 lines
1.4 KiB
JavaScript
35 lines
1.4 KiB
JavaScript
import 'qdrant-page-search/dist/js/search.min.js';
|
|
|
|
(function () {
|
|
// Try to read metadata tag for partition
|
|
const metadata = document.querySelector('meta[name="partition"]');
|
|
let partition = null;
|
|
if (metadata) {
|
|
partition = metadata.content;
|
|
}
|
|
|
|
if (/documentation|docs/.test(window.location?.pathname)) {
|
|
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'documentation', partition: partition });
|
|
}
|
|
|
|
if (/articles/.test(window.location?.pathname)) {
|
|
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'articles', partition: partition });
|
|
}
|
|
|
|
if (/blog/.test(window.location?.pathname)) {
|
|
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'blog', partition: partition });
|
|
}
|
|
|
|
if (/course/.test(window.location?.pathname)) {
|
|
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'course', partition: partition });
|
|
}
|
|
|
|
if (/learn/.test(window.location?.pathname)) {
|
|
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'articles,course,documentation' });
|
|
}
|
|
|
|
if (/customers/.test(window.location?.pathname)) {
|
|
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'blog', partition: partition });
|
|
}
|
|
})();
|