mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-01 17:08:30 +02:00
Enable search widget on Learn tab (#2247)
* Enable search widget on Learn tab * allow courses in sitemap + search multiple sections --------- Co-authored-by: generall <andrey@vasnetsov.com>
This commit is contained in:
co-authored by
generall
parent
c46bade691
commit
4ce2e09c2b
@@ -23,4 +23,8 @@ import 'qdrant-page-search/dist/js/search.min.js';
|
|||||||
if (/course/.test(window.location?.pathname)) {
|
if (/course/.test(window.location?.pathname)) {
|
||||||
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'course', partition: partition });
|
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' });
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -3,15 +3,7 @@
|
|||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
{{ range .Data.Pages }}
|
{{ range .Data.Pages }}
|
||||||
|
|
||||||
<!-- TODO: remove this once we release the course -->
|
{{- if and (or (eq (isset .Params "sitemapexclude") false) (ne .Params.sitemapExclude true)) (ne .Permalink "") }}
|
||||||
|
|
||||||
{{ if eq .Section "course" }}
|
|
||||||
{{ continue }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- TODO: remove this once we release the course -->
|
|
||||||
|
|
||||||
{{- if and (or (eq (isset .Params "sitemapexclude") false) (ne .Params.sitemapExclude true)) (ne .Permalink "") }}
|
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||||
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
||||||
|
|||||||
Reference in New Issue
Block a user