hugo-PaperMod/layouts/_default/search.html

29 lines
912 B
HTML
Raw Normal View History

{{- define "main" }}
<header class="page-header">
<h1>{{ .Title }}&nbsp;
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
2021-02-06 13:20:19 -05:00
{{- partial "translation_list.html" . -}}
</div>
2021-03-30 08:37:36 -04:00
{{- end }}
</header>
<div id="searchbox">
2021-03-30 08:37:36 -04:00
<input id="searchInput" autofocus placeholder="{{ .Title }} ↵" aria-label="search" type="search">
<ul id="searchResults" aria-label="search results"></ul>
</div>
{{- end }}{{/* end main */}}