Replies: 2 comments 2 replies
-
Hey @Karlstens 👋 I haven’t done so myself, but this npm package looks interesting! |
Beta Was this translation helpful? Give feedback.
-
I've added vitepress-plugin-pagefind to my sandbox VitePress project (rc42), it's been an interesting experience! Anything in the markdown body is more-or-less searchable out-of-the-box. And data-pagefind-ignore and data-pagefind-weight work well.
Where I'm currently stuck, is that I'm not too sure how to index Header content, as by default PageFind is only indexing the title of my page, but I have been testing some custom meta elements etc, but none of which return. For example, I'd like to add search terms (and weighted terms would be perfect!!!) to each of my page headers. My VitePress *.md files typically look like this - and don't mind the sandbox data - they're just search terms I'm testing with 😂
I'm very keen on for the ability to search for weighted search terms from the of my articles, to help steer my users search experience. Below is the debug F12 from my served VitePress page, the data looks as it should, I'm just needing some advice on tweaking my project so that data is also available and weighted in the PageFind search.
|
Beta Was this translation helpful? Give feedback.
-
Would anyone happen to know of any tutorials on how to implement Pagefind within a VitePress project?
Beta Was this translation helpful? Give feedback.
All reactions