diff --git a/content/features/Latex.md b/content/features/Latex.md index 3f523d64..0dbc1133 100644 --- a/content/features/Latex.md +++ b/content/features/Latex.md @@ -1,3 +1,8 @@ +--- +tags: + - plugin/transformer +--- + Quartz uses [Katex](https://katex.org/) by default to typeset both inline and block math expressions at build time. ## Formatting diff --git a/content/features/syntax highlighting.md b/content/features/syntax highlighting.md index 16d3fa97..68436c2d 100644 --- a/content/features/syntax highlighting.md +++ b/content/features/syntax highlighting.md @@ -1,5 +1,7 @@ --- title: Syntax Highlighting +tags: + - plugin/transformer --- Syntax highlighting in Quartz is completely done at build-time. This means that Quartz only ships pre-calculated CSS to highlight the right words so there is no heavy client-side bundle that does the syntax highlighting. diff --git a/content/features/upcoming features.md b/content/features/upcoming features.md index 676bb71e..dab75c6a 100644 --- a/content/features/upcoming features.md +++ b/content/features/upcoming features.md @@ -4,9 +4,7 @@ draft: true ## high priority -- local fonts - images in same folder are broken on shortest path mode -- https://help.obsidian.md/Editing+and+formatting/Tags#Nested+tags nested tags?? and big tag listing - watch mode for config/source code - https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Task+lists task list styling - publish metadata https://help.obsidian.md/Editing+and+formatting/Metadata#Metadata+for+Obsidian+Publish diff --git a/quartz/components/PageList.tsx b/quartz/components/PageList.tsx index 8ef40c51..7183acb8 100644 --- a/quartz/components/PageList.tsx +++ b/quartz/components/PageList.tsx @@ -20,11 +20,20 @@ function byDateAndAlphabetical(f1: QuartzPluginData, f2: QuartzPluginData): numb return f1Title.localeCompare(f2Title) } -export function PageList({ fileData, allFiles }: QuartzComponentProps) { +type Props = { + limit?: number +} & QuartzComponentProps + +export function PageList({ fileData, allFiles, limit }: Props) { const slug = canonicalizeServer(fileData.slug!) + let list = allFiles.sort(byDateAndAlphabetical) + if (limit) { + list = list.slice(0, limit) + } + return (