using javascript templating with wordpress to save time on post updates without impacting seo or ux


I have one JSON file that contains the text content for my hundreds of WordPress posts. I am using templating, mustache.js, to insert the text content and render the posts. This saves me a lot of time, because I can efficiently bulk update parts of multiple posts in my JSON file using find and replace where I am also writing the content, rather than having to use phpMyAdmin for find and replace updates. More importantly, I can copy one piece of content from one post into other posts without having to open up each post as a browser tab from the slow WordPress dashboard.

My question is:

This is a great system for me writing content, but is Google indexing the rendered posts, or is it only seeing the tags? My understanding is that on the first index, it looks at the source only, so it is indexing the tags only.

My follow-up question is: If this is the case and Google is only seeing the tags, is there a relatively simple way to render the posts for Googlebot before Googlebot sees them?

And finally, is there a way to render the entire site as static web pages all at once?

I don’t know how the last part would work, because I am using a WordPress host, WPEngine. It would be preferable though to render static web pages when I’m ready to, so that I can make changes to the JSON file offline, so to speak, without affecting the rendered site, because if I forget a comma and the JSON file becomes invalid, every single one of my WordPress posts will show up as blank to the user. Then, when the JSON file has updates and I know it is valid, I would be able to render/update all the posts.

, , , newuser 2 years 2019-10-29T10:14:31-05:00 0 Answers 78 views 0

Leave an answer