summaryrefslogtreecommitdiff
path: root/themes/PaperMod/layouts/_default/search.html
diff options
context:
space:
mode:
authorIndrajith K L2022-03-19 16:54:23 +0530
committerIndrajith K L2022-03-19 16:54:23 +0530
commit29fcd231e3da9b33c237886f3c1bb30a557ad641 (patch)
tree8eba56550b35938e7c445c9ed6d9005c14036666 /themes/PaperMod/layouts/_default/search.html
downloadexperimentsofindrajith-29fcd231e3da9b33c237886f3c1bb30a557ad641.tar.gz
experimentsofindrajith-29fcd231e3da9b33c237886f3c1bb30a557ad641.tar.bz2
experimentsofindrajith-29fcd231e3da9b33c237886f3c1bb30a557ad641.zip
Initial Commit
Diffstat (limited to 'themes/PaperMod/layouts/_default/search.html')
-rw-r--r--themes/PaperMod/layouts/_default/search.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/PaperMod/layouts/_default/search.html b/themes/PaperMod/layouts/_default/search.html
new file mode 100644
index 0000000..2349587
--- /dev/null
+++ b/themes/PaperMod/layouts/_default/search.html
@@ -0,0 +1,29 @@
+{{- define "main" }}
+
+<header class="page-header">
+ <h1>{{- (printf "%s&nbsp;" .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">
+ <ul id="searchResults" aria-label="search results"></ul>
+</div>
+
+{{- end }}{{/* end main */}}