gatsby-project-kb
gatsby-project-kb copied to clipboard
Add tags parsing and it's view
Similar to Foam's tag support
- adding a #tag anywhere in the text of the note
- using the tags: tag1, tag2 property in frontmatter
@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!
@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.
@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.
@hikerpig The tags function is nice if we have it in the our website. I agree with you it's not really necessary.