Jacky Zhao
2022-03-15 94e987dab5a50196bc2273addc6f908178abd0fb
feat: better titles for empty pages #61
2 files modified
3 ■■■■ changed files
assets/js/graph.js 2 ●●● patch | view | raw | blame | history
content/_index.md 1 ●●●● patch | view | raw | blame | history
assets/js/graph.js
@@ -185,7 +185,7 @@
  const labels = graphNode.append("text")
    .attr("dx", 12)
    .attr("dy", ".35em")
    .text((d) => content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || "Untitled")
    .text((d) => content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || d.id.replace("-", " "))
    .style("opacity", 0)
    .style("pointer-events", "none")
    .call(drag(simulation));
content/_index.md
@@ -24,3 +24,4 @@
- 🚧 [Troubleshooting and FAQ](notes/troubleshooting.md)
- 🐛 [Submit an Issue](https://github.com/jackyzha0/quartz/issues)
- 👀 [Discord Community](https://discord.gg/cRFFHYye7t)