diff options
| author | rtk0c <[email protected]> | 2025-09-01 11:27:12 -0700 |
|---|---|---|
| committer | rtk0c <[email protected]> | 2025-09-01 11:27:12 -0700 |
| commit | 86b0d0c422e34c38837b5b5495ad6d295d0e73d2 (patch) | |
| tree | 039e513e5cebe1ba60b747372b50d8049edf29ae /layouts/_default/search.html | |
Squashed 'themes/PaperMod/' content from commit 5a46517
git-subtree-dir: themes/PaperMod
git-subtree-split: 5a4651783fa9159123d947bd3511b355146d4797
Diffstat (limited to 'layouts/_default/search.html')
| -rw-r--r-- | layouts/_default/search.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/layouts/_default/search.html b/layouts/_default/search.html new file mode 100644 index 0000000..bb7d436 --- /dev/null +++ b/layouts/_default/search.html @@ -0,0 +1,29 @@ +{{- define "main" }} + +<header class="page-header"> + <h1>{{- (printf "%s " .Title ) | htmlUnescape -}} + <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"> + {{- partial "translation_list.html" . -}} + </div> + {{- end }} +</header> + +<div id="searchbox"> + <input id="searchInput" autofocus placeholder="{{ .Params.placeholder | default (printf "%s ↵" .Title) }}" + aria-label="search" type="search" autocomplete="off" maxlength="64"> + <ul id="searchResults" aria-label="search results"></ul> +</div> + +{{- end }}{{/* end main */}} |
