3 ms·
The public access the web version via nginx, technically. Jekyll or Hugo just spits out files. You set up your wordpress with custom post types and I wrote a
by busterarm 3y ago
The public access the web version via nginx, technically. Jekyll or Hugo just spits out files.
You set up your wordpress with custom post types and I wrote a Jekyll Generator plugin that builds content from a SQL query to WordPress' database. The whole pipeline to build and publish an update to the static site was around 5 minutes...with most of the build-time being eaten up by webpack to do its thing. Probably could have shaved off more time but at that point who cares.
There are also WordPress plugins that can do this now, but understanding how WordPress stores data in its database is dead-simple.
For a static site, a lot of tricks were pulled off to serve dynamic content and the site was still pretty tight and speedy. You can still get reliable Date stamps and CSRF tokens for formfills and stuff like that using nginx SSI.
- zakki 3y agoThanks