TechLifeWeb

Note 2024-11-23T21:13:45.000-08:00


Published by 
Scott Kingery
 on 

Trying out Pagefind to implement search on my 11ty site and it sort of works. If all code is exactly the same and the post has at tag "article" it is included in the index. If all I do is change the tag to "note" it isn't included. Can't seem to figure out how to get "note" posts into the index. #IndieWeb

Replies

  • Scott Kingery on 🦋 : note (https://techlifeweb.com/blog/2024/11/2024-11-23-post-211345/)
  • Liam Bigelow on 🌐 : @techlifeweb Hmm, looking at those pages I can see two issues. One is that all of your notes have an h1 of "note" rather than the title, which Pagefind will be picking up as the title for every note. The other is having data-pagefind-body on notes but not on articles — though I would expect this to behave opposite to what you're saying (notes would be in, articles would be out). I can look more if you're happy to share an example search, and the output from the running the Pagefind CLI :)