Joy
(@joyously)
A site doesn’t really need both SSG and WordPress. It would make more sense to choose static or dynamic, but not both.
There are services that allow you to use WP behind a firewall, and generate a static site from that.
There is WP2Static, which use to be in the plugin repository, but they moved to GitHub. It generates the static pages for you.
But if you want dynamic queries from the database with graphQL, you can’t do that at Netlify.
Thank you. I am interested in learning Eleventy, Netlify and Jamstack.
Joy
(@joyously)
You can look at some plugins for builds: https://ww.wp.xz.cn/plugins/search/netlify/
And this plugin can help you export your content (and it’s easy to tweak): https://ww.wp.xz.cn/plugins/wp-gatsby-markdown-exporter/
or use this one: https://ww.wp.xz.cn/plugins/ghost/
If you have small content, you can use a static JS search instead of an external service. This page helps evaluate the algorithms for fuzzy searches: https://fiatjaf.github.io/search-comparison/
I didn’t like any of those for a catalog site, so I chose https://github.com/lucaong/minisearch
Thank you but I’m focusing on Eleventy.
Joy
(@joyously)
I got that. But Eleventy uses Markdown, so you can use a plugin for something like Gatsby or Ghost, just to get the exported content to use in Eleventy.
Thank you. I believe the plugin would be WPgraphQL.
Joy
(@joyously)
The WPgraphQL plugin would only help you if you keep WordPress on a server somewhere. If you are moving to Netlify, you won’t have a server to run WordPress or the graphQL plugin. And Eleventy does its own generation of pages, so you don’t need WP for that, but you do need your content in Markdown.
Like I said, choose one or the other. I was just giving you plugins so you could export content and move to Eleventy.