basic search implementation

This commit is contained in:
Jacky Zhao 2023-06-19 20:37:45 -07:00
parent c4cf0dcb02
commit fd5c8d17d3
26 changed files with 751 additions and 182 deletions

View file

@ -39,16 +39,16 @@ const config: QuartzConfig = {
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.Description(),
Plugin.TableOfContents(),
Plugin.CreatedModifiedDate({
priority: ['frontmatter', 'filesystem'] // you can add 'git' here for last modified from Git but this makes the build slower
}),
Plugin.GitHubFlavoredMarkdown(),
Plugin.ObsidianFlavoredMarkdown(),
Plugin.ResolveLinks(),
Plugin.GitHubFlavoredMarkdown(),
Plugin.CrawlLinks(),
Plugin.SyntaxHighlighting(),
Plugin.Katex(),
Plugin.Description(),
],
filters: [
Plugin.RemoveDrafts()
@ -60,6 +60,7 @@ const config: QuartzConfig = {
header: [
Component.PageTitle({ title: "🪴 Quartz 4.0" }),
Component.Spacer(),
Component.Search(),
Component.Darkmode()
],
beforeBody: [
@ -73,6 +74,7 @@ const config: QuartzConfig = {
right: [
Component.Graph(),
Component.TableOfContents(),
Component.Backlinks()
],
footer: []
}),