diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-07-16 14:34:02 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-08-06 11:33:42 +0200 |
commit | 1f3addcca5bad9ed12ed3e1df7ba75859c650249 (patch) | |
tree | 2e277c7fad1f89a4aafcafa89fc269e257540f09 /layouts/partials/docs/search.html | |
parent | dda0a0eab19457598b71f2b2b2f978b09d3f95c7 (diff) |
Implement search, loading on demand
Diffstat (limited to 'layouts/partials/docs/search.html')
-rw-r--r-- | layouts/partials/docs/search.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/layouts/partials/docs/search.html b/layouts/partials/docs/search.html index d4b0e65..6276cc3 100644 --- a/layouts/partials/docs/search.html +++ b/layouts/partials/docs/search.html @@ -1,2 +1,9 @@ -<input type="text" placeholder="Search" class="book-search" id="book-search" /> -<ul id="book-search-results"></ul> +{{ if default true .Site.Params.BookSearch }} +<div class="book-search"> + <ul id="book-search-dummy" class="hidden"> + <li><a href></a></li> + </ul> + <input type="text" placeholder="Search" id="book-search-input" /> + <ul id="book-search-results"></ul> +</div> +{{ end }} |