mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-07-22 22:31:26 +00:00
.github
content
docs
advanced
features
Docker Support.md
Latex.md
Mermaid diagrams.md
Obsidian compatibility.md
OxHugo compatibility.md
RSS Feed.md
SPA Routing.md
backlinks.md
breadcrumbs.md
callouts.md
darkmode.md
explorer.md
folder and tag listings.md
full-text search.md
graph view.md
index.md
popover previews.md
private pages.md
recent notes.md
syntax highlighting.md
table of contents.md
upcoming features.md
wikilinks.md
images
tags
authoring content.md
build.md
configuration.md
hosting.md
index.md
layout.md
migrating from Quartz 3.md
philosophy.md
showcase.md
upgrading.md
quartz
.gitattributes
.gitignore
.npmrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
Dockerfile
LICENSE.txt
README.md
globals.d.ts
index.d.ts
package-lock.json
package.json
quartz.config.ts
quartz.layout.ts
tsconfig.json
1.4 KiB
1.4 KiB
title, tags
title | tags |
---|---|
Recent Notes | component |
Quartz can generate a list of recent notes for based on some filtering and sorting criteria. Though this component isn't included in any layout by default, you can add it by using Component.RecentNotes
.
Customization
- Changing the title from "Recent notes": pass in an additional parameter to
Component.RecentNotes({ title: "Recent writing" })
- Changing the number of recent notes: pass in an additional parameter to
Component.RecentNotes({ limit: 5 })
- Show a 'see more' link: pass in an additional parameter to
Component.RecentNotes({ linkToMore: "tags/components" })
. This field should be a full slug to a page that exists. - Customize filtering: pass in an additional parameter to
Component.RecentNotes({ filter: someFilterFunction })
. The filter function should be a function that has the signature(f: QuartzPluginData) => boolean
. - Customize sorting: pass in an additional parameter to
Component.RecentNotes({ sort: someSortFunction })
. By default, Quartz will sort by date and then tie break lexographically. The sort function should be a function that has the signature(f1: QuartzPluginData, f2: QuartzPluginData) => number
. SeebyDateAndAlphabetical
inquartz/components/PageList.tsx
for an example. - Component:
quartz/components/RecentNotes.tsx
- Style:
quartz/components/styles/recentNotes.scss