1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2026-06-04 05:20:35 +00:00
Commit Graph

49 Commits

Author SHA1 Message Date
Anson ee80f65736 feat: hide category pills when category is already wiki-linked in content
Reduce visual clutter by only showing category pills for categories that
aren't already mentioned as wiki links in the note's content.

Implementation:
- Store outgoing links separately in links.ts before adding categories
- Added outgoingLinks to vfile DataMap type
- Modified CategoryList to filter out categories already in outgoingLinks
- Only category pills for unlinked categories are now displayed

Example:
If a note has categories: [[LLM]], [[Anthropic]], [[AI]] and the content
mentions [[LLM]] and [[Anthropic]], only the AI category pill will appear.

This follows Wikipedia's principle of avoiding redundant links and reduces
visual clutter while maintaining backlinks and graph connections.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 11:02:27 -05:00
Anson a1a9b5233d feat: implement wiki-linked categories with graph and backlinks integration
Add complete category system that integrates with Obsidian's wiki-linked
category frontmatter. Categories appear as pills on pages and link directly
to category notes (not aggregation pages).

Features:
- Parse [[Page Name]] syntax from category frontmatter
- Display category pills styled like tags
- Link directly to category notes
- Integrate with graph view connections
- Enable bidirectional backlinks
- Preserve case in category slugs

Implementation:
- Added extractWikiLinks() to frontmatter transformer
- Created CategoryList component for pill rendering
- Modified links transformer to include categories in links array
- Updated contentIndex to export category metadata
- Added i18n strings for category UI elements
- Set includeEmptyFiles: true to show empty category pages in graph

Files modified:
- quartz/plugins/transformers/frontmatter.ts
- quartz/plugins/transformers/links.ts
- quartz/plugins/emitters/contentIndex.tsx
- quartz/components/CategoryList.tsx (new)
- quartz/components/pages/CategoryContent.tsx (new)
- quartz/plugins/emitters/categoryPage.tsx (new)
- quartz/i18n/locales/en-US.ts
- quartz/i18n/locales/definition.ts
- quartz/components/index.ts
- quartz.layout.ts
- quartz.config.ts
- README.md (updated with Quartz updater documentation)

Security: Comprehensive privacy review confirms NO information leaks from
private folder. All ignore patterns working correctly.

Docs: Added CUSTOMIZATIONS.md with complete feature documentation,
implementation details, and privacy audit results.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-09 15:59:17 -05:00
Jiangnan Li af5773f0e4 fix(api): adapt to updated API parameter format from (#2185)
is-absolute-url v5.0.0
2025-10-31 16:59:46 -07:00
bfahrenfort eb9bbd1666 fix: constrain link icon size (#1409) 2024-09-14 10:10:01 -07:00
Andrew d27c292736 feat: Mark the external link icon as aria-hidden (#1346) 2024-08-12 20:06:19 -07:00
Jacky Zhao 39eebca3cf chore: ts fixes 2024-08-08 18:28:13 -07:00
Paul Trotter 42640bceb5 Check link isExternal before adding target="_blank" (#1211)
Fixes #1186 openLinksInNewTab opens ALL links in new tabs. Fixed to reflect documented behavior here: https://quartz.jzhao.xyz/plugins/CrawlLinks
2024-06-16 22:33:28 -07:00
Jacky Zhao b87a701ff7 fix: base.com not being resolved properly with joinSegments 2024-02-13 01:27:27 -08:00
Lin 880a9511b6 fix: incorrect link resolution for transclusion in root index file (#853)
Co-authored-by: Lauréline Nevin <laureline.nevin@unicaen.fr>
2024-02-13 03:11:16 -05:00
Jacky Zhao ab0e20b4d0 chore: refactor out and export endsWith 2024-02-11 10:57:24 -08:00
sean fa7d139ce5 feat: External link icons (#697) 2024-01-15 23:55:32 -08:00
Jacky Zhao 4b6c7aeffe feat: lazyLoading specifier in link transformer 2023-12-28 13:56:20 -08:00
Jacky Zhao 82bd08d14a fix: transcludes and relative paths 2023-12-02 16:51:03 -08:00
Matt Vogel 727b9b5d72 feat: add class alias to aliases (#585) 2023-11-17 10:23:39 -08:00
Jacky Zhao 7c01e8dde0 feat: openLinksInNewTab option for link transformer 2023-10-22 09:54:12 -07:00
Jacky Zhao cce389c81d feat: note transclusion (#475)
* basic transclude

* feat: note transclusion
2023-09-13 11:28:53 -07:00
Jacky Zhao 2525bfbab5 fix: links to index not showing in graph (closes #450) 2023-09-06 22:24:15 -07:00
Jacky Zhao 2d52eba413 fix: dont transform external links 2023-09-06 20:25:50 -07:00
Jacky Zhao eed4472aee fix: use proper full base for links.ts 2023-08-23 12:18:50 -07:00
Jacky Zhao b444c5c13b fix: percent-encoding for files with %, contentIndex for non-latin chars (closes #397, closes #399) 2023-08-22 23:34:28 -07:00
松浦 知也 Matsuura Tomoya bb677840fc fixed broken CJK links (#390) 2023-08-22 09:16:55 -07:00
Jacky Zhao dd47be1bc6 improve path resolution stability 2023-08-19 16:28:44 -07:00
Jacky Zhao c874e7e937 base path refactor to better support subpath hosting 2023-08-19 15:52:25 -07:00
Jacky Zhao 0c199975f2 various path fixes for links to extensions, fix relative paths in links 2023-08-17 00:55:28 -07:00
Jacky Zhao 2f6747b166 fix relative path resolution in router and link crawling 2023-08-16 22:04:15 -07:00
Jacky Zhao d6e73f221c fix relative path resolution logic, add more path tests 2023-08-12 21:16:43 -07:00
Jacky Zhao 83269ac26e fix scanning for tags in content 2023-08-11 23:40:06 -07:00
Jacky Zhao d8d9dd22c9 fix shortest path for non-md files, mobile fix 2023-08-06 20:52:17 -07:00
Jacky Zhao 028bcec62c mobile fixes, fix bug when linking to anchor on home, docs 2023-08-06 17:09:29 -07:00
Jacky Zhao 663c41fa41 use posix style paths for all path ops 2023-08-02 23:04:26 -07:00
Jacky Zhao d7842e0ce7 make path and globbing more platform invariant 2023-08-02 22:10:13 -07:00
Jacky Zhao a70e846b0a flag to allow ofm replace in html embed 2023-08-01 22:47:16 -07:00
Jacky Zhao 041a4ce7bc fix watch-mode batching 2023-07-24 00:04:01 -07:00
Jacky Zhao 5599eb590e feat: process tags in content 2023-07-23 14:02:57 -07:00
Jacky Zhao 7db2eda76c run prettier 2023-07-22 17:27:41 -07:00
Jacky Zhao 3ac6b42e16 finish path refactoring, add sourcemap + better trace support 2023-07-15 23:02:12 -07:00
Jacky Zhao 906f91f8ee base path refactor, more docs 2023-07-13 00:19:35 -07:00
Jacky Zhao 08f8e3b4a4 docs + various polish 2023-07-09 19:32:24 -07:00
Jacky Zhao b90590b9f4 polish 2023-07-08 14:36:02 -07:00
Jacky Zhao 974b0da308 folder and tag descriptions, re-enable relative pathing 2023-07-04 18:02:59 -07:00
Jacky Zhao e0ebee5aa9 various polish 2023-07-02 13:08:29 -07:00
Jacky Zhao 24348b24a9 fix: parsing wikilinks that have codeblock anchors, scroll to anchor 2023-06-19 22:50:25 -07:00
Jacky Zhao fd5c8d17d3 basic search implementation 2023-06-19 20:37:45 -07:00
Jacky Zhao 8bfee04c8c popovers 2023-06-17 16:05:46 -07:00
Jacky Zhao 352075ae81 refactor plugins to be functions instead of classes 2023-06-11 23:26:43 -07:00
Jacky Zhao b8c011410d toc 2023-06-09 23:06:02 -07:00
Jacky Zhao c1c46ad67e obsidian flavored markdown support 2023-06-01 12:33:20 -04:00
Jacky Zhao 3636c052eb link processing 2023-05-31 17:41:44 -04:00
Jacky Zhao 21c007e2fc rendering, link resolution, asset copying 2023-05-31 17:01:23 -04:00