summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-05 01:39:56 +0200
committerGitHub <noreply@github.com>2022-07-05 01:39:56 +0200
commit03a5d662e498ac295e6aab2c0322d624f76ffa2e (patch)
tree5f92cccab02c899071424bc02b7dde08f75cf602 /layouts/shortcodes
parentf1cb48a7e000be9332d22aa5f0f40bb36015839c (diff)
parent143f31a09673045925622d062c993315c62cff41 (diff)
downloadgohugo-theme-ed-03a5d662e498ac295e6aab2c0322d624f76ffa2e.tar.gz
Merge pull request #6 from sergeyklay/feature/search
Implementing search
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/form-search.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/shortcodes/form-search.html b/layouts/shortcodes/form-search.html
new file mode 100644
index 0000000..cb30d6f
--- /dev/null
+++ b/layouts/shortcodes/form-search.html
@@ -0,0 +1,20 @@
+<div id="site-search" class="search-form">
+ <p>{{ i18n "search_help" }}</p>
+ <form role="form" id="search-form">
+ <div class="search-wrapper">
+ <div class="search-container form-item">
+ <input autocomplete="off" placeholder="" id="search" class="search-form-input form-input" aria-label="{{ i18n "search_site" }}" type="text" name="q">
+ </div>
+ <div class="search-error hide-element">
+ <p class="search-error-message"></p>
+ </div>
+ </div>
+ </form>
+ <div id="clear-search-results" class="form-item hide-element">
+ <button class="button button-large" type="reset">
+ {{ i18n "clear_search_results" }}
+ </button>
+ </div>
+</div>
+
+{{- partial "search-results" . -}}