-
Some on my site pages have multiple images defined (it is a photography portfolio site) and when I search it correctly finds text in the image's Alt; however the image that is displayed in the search results is not the image indexed. How do I get PageFind to show the correct image in the results? My images are defined as follows: -
|
Beta Was this translation helpful? Give feedback.
Answered by
bglw
Jul 11, 2024
Replies: 1 comment 3 replies
-
Hey @Phil89a — sorry I completely missed this one! Do you have a link to the site in question? Things look correct from just your code sample. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specifically for the https://cw109eu.uk/portfolio/recent/ page, nothing is being indexed as all of that content is inside an
<aside>
element withdata-pagefind-ignore
set. Not sure if that's intentional.More generally, Pagefind also won't do a great job of highlighting results for those images individually if that's what you're after, since they don't have their own pages. If you remove the
data-pagefind-ignore
tag though then that Recent Work page as a whole would come up as a result for "Wales" :)