switch search function to typesense search

This commit is contained in:
2026-02-07 20:13:03 +08:00
parent cf197c75ab
commit f2c0635ee8
9 changed files with 695 additions and 630 deletions

View File

@@ -21,12 +21,12 @@ nav#nav
if theme.menu
!= partial('includes/header/menu_item', {}, {cache: true})
#nav-right
if theme.search.use
if theme.search.use || true
#random-post-button
a.site-page.social-icon#random-post-link(href='javascript:randomPost();')
a.site-page.social-icon#random-post-link(href='javascript:void(0);' onclick='randomPost()')
i.fas.fa-solid.fa-shuffle
#search-button
a.site-page.social-icon.search
a.site-page.social-icon.search-typesense-trigger
i.fas.fa-search.fa-fw
#toggle-menu
span.site-page