Auto publish your scheduled blog posts on JAMstack + Netlify - Code with Hugo - Apr 8th 2019
Hot off the press
Auto-publish future posts with JAMstack on Netlify and CircleCI 2.0 scheduled jobs: Static site generators like Hugo, Jekyll, Hexo, Gatsby or other JAMstack alternative are a great option to run your blog on. One of the earliest and possibly most painful issues you will come across is “How do I schedule content to publish for later?”. This post goes through how to achieve this using modern tools. Namely CircleCI 2.0 and Netlify (which is a hosting platform specialised in JAMstack sites).
If you missed it
Enable CDN (Cloudflare) caching for your Netlify site: Netlify likes it when you use their CDN, but if you've got Cloudflare in front, you need to manually re-enable the Cache-Control headers.
Docker Compose Local HTTPS with nginx or Caddy and mkcert: A solution to serve your Dockerized application on Docker Compose with TLS/SSL locally by leveraging a HTTPS reverse-proxy and mkcert.
Sequelize Data Types: a practical guide: DataTypes are core to the Sequelize 4 library.
Mocking/stubbing ES6 classes in tests with examples of Sequelize model unit tests: This post goes through some patterns that can be used to unit test ES6 classes.
From the web
Netlify CMS: a flat-file CMS that makes it super easy to edit your git + markdown driven JAMstack content site without firing up a code editor (or using eg. GitHub's clunky editing UI).
I Don’t Hate Arrow Functions - Kyle Simpson (@getify), a nice post around pros, cons and challenges around using arrow functions, sort of a promotional piece for Kyle's new proper-arrow-functions ESLint plugin.
In Defense of YAML - Rod Johnson of Atomist, some contrast to the YAML-bashing that we all love.
Force push with care - Tute Costa of thoughtbot, I’ve recently written a post about resolving issues with your upstream getting updated and having issues syncing that back to your local repository without losing changes (see Fix git “tip of your current branch is behind its remote counterpart”). These are some helpful tips on how to use git push --force
with a bit more sanity.