I’m facing an issue with indexing my Jekyll-based static site (a blog) properly with jekyll-algolia plugin.
On my site, every blog article content is wrapped in
<section class='page__content'> ... </section>. I have a post which contains a bunch of links and has the following structure:
<section class="page__content"> <h2>Header 1</h2> <ul> <li><a href=''>Link 1</a></li> <li><a href=''>Link 2</a></li> </ul> <h2>Header 2</h2> <ul> <li><a href=''>Link 3</a></li> <li><a href=''>Link 4</a></li> </ul> </section>
But it doesn’t index any content from inside the section of that post.
nodes_to_index: 'p,section.page__content' in my configuration, but it didn’t make any difference from the default
Further, I changed the configuration to
nodes_to_index: 'p,h2,section.page__content'. With this, it indexed just the text of “Header 1”, but “Header 2” was not indexed, and neither were the links (1 to 4).
If I want to index all the content inside the section, what do I need to do?