diff options
| author | somhairle <[email protected]> | 2026-04-21 20:40:27 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-05-24 17:24:57 +0800 |
| commit | ad8f9f55ea79a4d587aecc69698808da82de3d62 (patch) | |
| tree | d25c0db712e6f015d850627ff957edea44c64f94 /source/search | |
| download | blog-ad8f9f55ea79a4d587aecc69698808da82de3d62.tar.gz | |
二〇二六年四月二十一日
Diffstat (limited to 'source/search')
| -rw-r--r-- | source/search/index.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source/search/index.md b/source/search/index.md new file mode 100644 index 00000000..b6ffb68d --- /dev/null +++ b/source/search/index.md @@ -0,0 +1,26 @@ +--- +title: 搜索 +--- + +<div class="search-page"> + <div class="search-input-container"> + <input autocomplete="off" autocapitalize="off" maxlength="80" + placeholder="输入关键词搜索..." spellcheck="false" + type="search" class="search-input" id="search-input"> + </div> + <div class="search-result-container" id="search-results"> + <div class="search-result-message"></div> + </div> +</div> + +<script> + const searchConfig = { + path : "/search.xml", + top_n_per_article: "-1", + unescape : "false", + trigger: "auto", + preload: "false" + } +</script> +<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/search.js"></script> +<script src="/js/search.js"></script> |
