Open Casyfill opened 3 years ago
I love how the graph is built, but can the tags be of different colors or shapes? Can I control it somehow, or perhaps use the same settings as ones in Foam (the API is not stable there, though)
I used https://github.com/hikerpig/note-graph to render the graph view, I checked its APIs, it seems no option for specifying the node color. So, this may not be happening soon.
Another question - what does Nested sidebar mean in this case? Can I nest my custom Sidebar AND have tags above/beneath it? Plus, can I somehow control the navbar colors?
For now, no. you can only use the tag sidebar, categories sidebar or use SUMMARY.md
to customize the sidebar totally.
But I like your idea, I can add this feature by adding an option, to specify the sidebar components.
For navbar colors, I think I can add option to specify your own theme config, see here: https://github.com/theowenyoung/gatsby-theme-primer-wiki/blob/main/theme/src/components/wrap-root-element.js#L9
And the last one - Now all path prefixes work correctly... except that logo sends me to the root page (root gitlab page in my case, not one with the prefix)
yes, thanks, this is a bug, I'll fix it soon.
Thanks Owen!
Hi, @Casyfill , I have committed this feature.
For custom theme: https://github.com/theowenyoung/gatsby-theme-primer-wiki#custom-theme , but the theme override is for global. so I don't know if it can satisfy you.
For sidebar nested:
https://github.com/theowenyoung/gatsby-theme-primer-wiki#others
You can use sidebarComponents
config, like:
options: {
sidebarComponents: ["summary", "latest", "tag"]
}
You should also add SUMMARY.md
to your root, for example see here
I love how the graph is built, but can the tags be of different color or shape? Can I control it somehow, or perhaps use same settings as ones in Foam (the API is not stable there, though)
Another question - what does
Nested sidebar
mean in this case? Can I nest my custom Sidebar AND have tags above/beneath it? Plus, can I somehow control the navbar colors?And the last one - Now all path prefixes work correctly... except that logo sends me to the root page (root gitlab page in my case, not one with the prefix)