gatsby-project-kb icon indicating copy to clipboard operation
gatsby-project-kb copied to clipboard

Add tags parsing and it's view

Open hikerpig opened this issue 4 years ago • 4 comments

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 avatar Feb 23 '21 04:02 hikerpig

@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 avatar Sep 04 '21 07:09 flashshare

@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 avatar Sep 04 '21 08:09 hikerpig

@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 avatar Sep 04 '21 08:09 hikerpig

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

flashshare avatar Sep 04 '21 08:09 flashshare