mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 00:58:13 +00:00
25 lines
761 B
HTML
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 }} |