hikerpig / gatsby-project-kb

Developing gatsby-theme-kb, a Gatsby theme for publishing Knowledge Base.
https://gatsby-project-kb.vercel.app/
MIT License
62 stars 15 forks source link

Add tags parsing and it's view #5

Open hikerpig opened 3 years ago

hikerpig commented 3 years ago

Similar to Foam's tag support

flashshare commented 2 years ago

@hikerpig Is it possible to add tags page by Shadowing some components of gatsby-project-kb? I tried to follow the tutorial in this website How to add tags to gatsby-theme-blog? but at the end I have to modify gatsby-node.js, which is too complicated!

hikerpig commented 2 years ago

@flashshare I'm afraid so, it's more than just the UI change. This can not be done without tackle into markdown parsing process, I have not found a remark plugin or so back then, so this has been in the backlog for a while now.

hikerpig commented 2 years ago

@flashshare More specifically. If you don't need to support the Obsidian style #tag in plaintext, and can be settled with old-fashioned frontmatter tags, the markdown parsing part can be skipped.

But of course, a little change of gatsby-node.js and src/use-graph-data.ts is inevitable.

I didn't implement this because personally I found that not very useful in my situation. I tended to use an index page and searching rather than old fashioned tags page, since this is a wiki theme, not entirely designed for blogs.

flashshare commented 2 years ago

@hikerpig The tags function is nice if we have it in the our website. I agree with you it's not really necessary.