blog-hexo/themes/hexo-theme-cosy/layout/search.ejs

24 lines
799 B
Plaintext
Raw Normal View History

2023-11-08 10:11:56 +08:00
<%- css("/css/82dd7e5a.css")%>
2023-10-24 09:50:42 +08:00
<form class="search-group">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 20">
<g fill="currentColor">
<path d="M8.5 3a5.5 5.5 0 0 1 4.383 8.823l4.147 4.147a.75.75 0 0 1-.976 1.133l-.084-.073l-4.147-4.147A5.5 5.5 0 1 1 8.5 3zm0 1.5a4 4 0 1 0 0 8a4 4 0 0 0 0-8z" fill="currentColor"></path>
</g>
</svg>
<span id="search-input"><%- __('text-search') %></span>
<div class="short-key">
<kbd class="key-cap"><span>Ctrl K</span></kbd>
</div>
</form>
<script>
window.algolia = {
appId: "<%- config.algolia.appId %>",
SearchOnlyAPIKey: "<%- config.algolia.SearchOnlyAPIKey %>"
}
2023-11-03 14:52:16 +08:00
window.search = {
enable: "<%- theme.search.enable %>"
}
2023-10-24 09:50:42 +08:00
</script>
2023-11-10 13:44:10 +08:00
<%- js("/js/f7f7cc39.js")%>