diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/head/js.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html index f4dc60e..bb53b7b 100644 --- a/layouts/partials/head/js.html +++ b/layouts/partials/head/js.html @@ -10,4 +10,6 @@ {{- end }} {{- end }} {{- end }} -<script src="/js/bootstrap.bundle.min.js"></script>
\ No newline at end of file +<script src="/js/bootstrap.bundle.min.js"></script> +<script src="/js/fuse.min.js"></script> +<script src="/js/search.js"></script>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4cb6113..0c951c5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,7 +9,11 @@ </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> {{ partial "hmenu.html" (dict "menuID" "main" "page" .) }} + <div class="d-flex"> + <input class="form-control me-2" id="search-input" type="search" placeholder="Поиск по сайту" aria-label="Поиск по сайту"> + </div> </div> </div> </nav> -<div class="navbar-filler"></div>
\ No newline at end of file +<div class="navbar-filler"></div> +<div id="search-results" class="list-group rounded border shadow hidden"></div>
\ No newline at end of file |