mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-10 10:22:27 +00:00
port to gitlab.
This commit is contained in:
25
themes/custom/layouts/_default/search.html
Normal file
25
themes/custom/layouts/_default/search.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{{ 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 }}
|
Reference in New Issue
Block a user