support multilingual search

This commit is contained in:
geekifan
2025-04-27 21:11:17 +08:00
parent f15cda3a11
commit 3add1fd106
3 changed files with 239 additions and 210 deletions

View File

@ -6,7 +6,6 @@
-}}
{{- $themeOpts := merge $jsOpts (dict "global" "Theme") -}}
{{- $theme := resources.Get "js/modules/theme.js" | js.Build $themeOpts -}}
{{- $search := resources.Get "js/search.js" | js.Build $jsOpts -}}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f7f7f7">
@ -78,7 +77,6 @@
<!-- Scripts -->
<script src="{{ $theme.RelPermalink }}"></script>
<script defer src="{{ $search.RelPermalink }}"></script>
{{ partial "js-selector.html" . }}