Howto: Toggle design change-sets with a keyboard shortcut

Again a tip that is slightly off-topic, but it’s enabled by Hugo’s features. I have a Ruby-script attached to a keyboard short-cut that round-robins through a set of stylesheet-changesets, loaded into my browser with livereload.

I wrote a detailed blog-post about this IN NORWEGIAN, so a bonus to you if you know that language:

But the main thing about this is THE IDEA and the outlines in this script of mine:

I find this extremely useful (and I have only used this for an hour …) and if you do design demos for customers or similiar, I would imagine this to be both useful and impressive.

1 Like

Just a related note:

I just ported my build setup from Grunt to Gulp; oh what a difference! Now my keyboard short-cut trick really shines!

See:

https://github.com/bjornerik/bepsays.com/commit/1d442c6f39584ea4c43ef4bcf19a5f73b444b921