How are "You May Also Like" cards populated?
The "You May Also Like" section is powered by Algolia, and returns related content that the user might be interested in.
The data being passed and displayed is generally:
Title – Taken from the entry title and displayed as the main heading.
Body – Uses the preview text where available. If no preview text has been provided, a shortened version of the entry body is used instead, with any HTML formatting removed.
Image – Uses the main image where one has been provided. If no main image exists, the hero image is used as a fallback.
Section – Displays the name of the content section as a label above the title.
Distance – Displays the trail distance where available.
Average Spend – Displays the average spend where available.
Event Date – Uses the event start and end dates, formatted into a reader-friendly date.
URL – Used for the title link, image link, and the Read More button, allowing users to navigate to the full content.