Files
site/themes/custom/layouts/_default/search.html
2018-07-16 21:46:31 -04:00

25 lines
761 B
HTML

{{ define "content" }}
<section>
<div class="query-div">
<span class="query-icon" id="query-icon">
<i class="fa fa-search"></i>
</span>
<div class="query-input">
<input id="search-query" name="s" class="search-query" placeholder="请输入要搜索的文字..." />
</div>
</div>
<div id="search-results">
</div>
</section>
<!-- this template is sucked in by search.js and appended to the search-results div above. So editing here will adjust style -->
<script id="search-result-template" type="text/x-js-template">
<li id="summary-${key}">
<a href="${link}/" class="search-result-title">${title}</a>
<a href="${link}">
<p class="search-result">${snippet}</p>
</a>
</li>
</script>
{{ end }}