3 ms·
So WordPress is just for internal usage (i.e. adding, editing content)? And then Hugo generates its content from the WP site? And then public internet access th
by zakki 3y ago
So WordPress is just for internal usage (i.e. adding, editing content)?
And then Hugo generates its content from the WP site?
And then public internet access the web version from Hugo?
- busterarm 3y agoThe 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