-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
js.html
25 lines (23 loc) · 901 Bytes
/
js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/algoliasearchLite.min.js"></script>
<script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.min.js"></script>
<script>
var algoliaConfig = {
index_name: '{{ site.algolia.index_name }}',
application_id: '{{ site.algolia.application_id }}',
search_only_api_key: '{{ site.algolia.search_only_api_key }}'
};
</script>
<script src="/assets/js/search.js"></script>
<script src="/assets/js/main.min.js"></script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>