The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: include tag hierarchies in tag listing, sort tag listing

+6 -1
+5 -1
quartz/components/pages/TagContent.tsx
··· 28 28 : htmlToJsx(fileData.filePath!, tree) 29 29 30 30 if (tag === "/") { 31 - const tags = [...new Set(allFiles.flatMap((data) => data.frontmatter?.tags ?? []))] 31 + const tags = [ 32 + ...new Set( 33 + allFiles.flatMap((data) => data.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes), 34 + ), 35 + ].sort((a, b) => a.localeCompare(b)) 32 36 const tagItemMap: Map<string, QuartzPluginData[]> = new Map() 33 37 for (const tag of tags) { 34 38 tagItemMap.set(tag, allPagesWithTag(tag))
+1
quartz/plugins/emitters/tagPage.tsx
··· 40 40 const tags: Set<string> = new Set( 41 41 allFiles.flatMap((data) => data.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes), 42 42 ) 43 + 43 44 // add base tag 44 45 tags.add("index") 45 46