2025-2-26-fixed
This commit is contained in:
6
themes/next/layout/_third-party/search/algolia-search.swig
vendored
Normal file
6
themes/next/layout/_third-party/search/algolia-search.swig
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{%- set algolia_search_uri = theme.vendors.algolia_search or next_vendors('//cdn.jsdelivr.net/npm/algoliasearch@4/dist/algoliasearch-lite.umd.js') %}
|
||||
{%- set instant_search_uri = theme.vendors.instant_search or next_vendors('//cdn.jsdelivr.net/npm/instantsearch.js@4/dist/instantsearch.production.min.js') %}
|
||||
<script src="{{ algolia_search_uri }}"></script>
|
||||
<script src="{{ instant_search_uri }}"></script>
|
||||
|
||||
{{- next_js('algolia-search.js') }}
|
||||
1
themes/next/layout/_third-party/search/localsearch.swig
vendored
Normal file
1
themes/next/layout/_third-party/search/localsearch.swig
vendored
Normal file
@ -0,0 +1 @@
|
||||
{{- next_js('local-search.js') }}
|
||||
8
themes/next/layout/_third-party/search/swiftype.swig
vendored
Normal file
8
themes/next/layout/_third-party/search/swiftype.swig
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
|
||||
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
|
||||
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
|
||||
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
|
||||
|
||||
_st('install','{{ theme.swiftype_key }}','2.0.0');
|
||||
</script>
|
||||
Reference in New Issue
Block a user