Comments (4)
I believe the issue is that obsidian grabs a file name or the contents of [[]] as the title, where Quartz uses the frontmatter, it's unable to grab a title because there is no frontmatter to the file.
from quartz.
Yes that is likely. Although since the file is not created yet, this could probably be fixed with a conditional check if file exists type of command before the link is created in the graph code itself.
Unfortunately I'm not a coder, or I would've tried it myself :/
from quartz.
Perhaps an if statement of sorts here would be a quick fix?
- I changed the "//draw labels" sections in Layouts->Partials->Graph
from:
.text((d) => content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || "Untitled")
to
.text((d) => content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || "")
and this makes the titles on the unnamed nodes disappear. The nodes still show up, but i'm guessing adding an exception somewhere in "//draw individual nodes" should help?
from quartz.
It is actually intended behaviour to name notes 'Untitled' if they do not have a title.
To change this, you can filter out notes without title by modifying all instances of neighbours.add(...)
to check for the title.
e.g.
parseIdsFromLinks(links).forEach(id => neighbours.add(id))
becomes
parseIdsFromLinks(links)
.filter(id => !!content[decodeURI(id).replace(/\s+/g, '-')]?.title)
.forEach(id => neighbours.add(id))
from quartz.
Related Issues (20)
- Giscus comments not working HOT 1
- Comments not displaying in local web server HOT 2
- Titles with block references break table of contents
- Giscus does not work well under SPA HOT 4
- Add JSON-LD Structured Data for Improved SEO HOT 4
- Nested Callouts don't render paragraph breaks HOT 1
- Mermaid Chart as Code Block in Popover
- Obsidian vault is closed during synchronization
- Embedded PDFs appear as small boxes HOT 3
- Quartz page builds are failing with error stack HOT 7
- Question regarding the functionality of Recent Notes feature HOT 1
- Ability to define global latex macros
- Inconsistent Line Break Rendering Between Obsidian and Standard Markdown HOT 2
- ignorePatterns doesn't work with git submodule HOT 1
- (node:14143) [DEP0040] DeprecationWarning: The `punycode HOT 5
- a.tag-link renders poorly in tables HOT 1
- Where is the Quartz binary? HOT 4
- Using self hosted plausible for analytics doesn't work HOT 1
- Add Clarification to RSS Feed Documentation
- How to automatically make images link to original
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quartz.