blog-hexo/themes/hexo-theme-cosy/layout/search.ejs
2023-11-10 13:55:02 +08:00

24 lines
792 B
Plaintext

<%- css("/css/82dd7e5a.css")%>
<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 %>"
}
window.search = {
enable: "<%- theme.search %>"
}
</script>
<%- js("/js/b9c2be9c.js")%>