diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-04 18:51:24 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-04 18:51:24 +0200 |
| commit | d93a75b615b36fdf2275f10cf85b7812a06ec048 (patch) | |
| tree | 0f0f36a362887fd71e012a475c1ebc9f4c3fcbe6 /layouts/shortcodes/form-search.html | |
| parent | f1cb48a7e000be9332d22aa5f0f40bb36015839c (diff) | |
| download | gohugo-theme-ed-d93a75b615b36fdf2275f10cf85b7812a06ec048.tar.gz | |
WIP: Implementing search
Diffstat (limited to 'layouts/shortcodes/form-search.html')
| -rw-r--r-- | layouts/shortcodes/form-search.html | 20 |
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" . -}} |
