mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-09-18 23:15:21 +00:00
Compare commits
2 Commits
78832de162
...
12a720354d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
12a720354d | ||
![]() |
7b169efded |
@@ -1,4 +1,6 @@
|
||||
// import { FlexSearch, Charset } from "flexsearch"
|
||||
import FlexSearch from "flexsearch"
|
||||
import Charset from "flexsearch"
|
||||
import { ContentDetails } from "../../plugins/emitters/contentIndex"
|
||||
import { registerEscapeHandler, removeAllChildren } from "./util"
|
||||
import { FullSlug, normalizeRelativeURLs, resolveRelative } from "../../util/path"
|
||||
@@ -15,10 +17,9 @@ interface Item {
|
||||
type SearchType = "basic" | "tags"
|
||||
let searchType: SearchType = "basic"
|
||||
let currentSearchTerm: string = ""
|
||||
const encoder = (str: string) => str.toLowerCase().split(/([^a-z]|[^\x00-\x7F])/)
|
||||
let index = new FlexSearch.Document<Item>({
|
||||
charset: "latin:extra",
|
||||
encode: encoder,
|
||||
charset: "cjk:extra",
|
||||
encode: Charset.CJK,
|
||||
document: {
|
||||
id: "id",
|
||||
tag: "tags",
|
||||
|
@@ -101,12 +101,12 @@ table {
|
||||
& .ileft {
|
||||
padding-left: 1.7rem;
|
||||
|
||||
background-image: linear-gradient(black, black), linear-gradient(black, black);
|
||||
background-image: linear-gradient(var(--darkgray), var(--darkgray)), linear-gradient(var(--darkgray), var(--darkgray));
|
||||
background-repeat: no-repeat;
|
||||
background-size: 8px 2px;
|
||||
background-position: top left, bottom left;
|
||||
|
||||
border-left: solid black;
|
||||
border-left: solid var(--darkgray);
|
||||
border-width: 0 2px;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user