I have a static website which uses async jQuery to generate articles (as well as titles and other metadata) sourced from a file (something like $('main').load('/data #location.pathname')
). The only problem seems to be that Google cannot accurately read these pages, as Google Search just returns the default title and description (even though the Google Search Console crawler bot seems to preview them fine). I've tried to look through Google's AJAX docs but they have been marked as deprecated for a few years and I can't find any superceding documentation. How can I get Google to properly index these pages?
/data/content
import the page layout from/article
instead of/article
importing the article content from/data#content
.