If you’ve been following my travels, you’ll get some sense that this has been a busy year. I’ve done lots of writing on my book, and I’ve managed to give lots of talks, both in the US and in Argentina, as well as at home. I haven’t posted here for nearly a year–writing elsewhere has been a higher priority.
However, this weekend, I’ve made a few changes to the website which means that I might post here a little more often. The site is produced by Hugo, a really sweet static site generator. Until yesterday, if I wanted to update my site, what I did was
That worked fine, but I needed to do steps 2–4 on my Mac, and I don’t always have my Mac with me. Sometimes I prefer to write on my (smaller, less fiddly an distracting) iPad, and sometimes I only have my phone with me, and it’d be nice to update files on the website without having to run through my Mac to do that. I use Working Copy on my iPhone and iPad to keep local copies of my website files (as well as the papers and book I’m currently working on) so it’s as easy as anything to edit these files wherever I have one of these devices on hand.
Here’s where Netlify comes in. It’s a continuous integration service, that does step 2-4 in the cloud, without me having to be at my Mac. It’s very easy to wire up Netlify and Github so that whenever I add a new file (or edit a file) in the source to my website, a little daemon spins up on the Netlify servers, runs hugo on the files, and syncs the result up to my website. It means that now I can edit files from any device connected to the internet, and the site is nicely generated, without me having to either edit in a web form (ugh!) or deal with a database driven website that either needs software maintenance or is prone to spam and server injection nastiness, or goes down at a drop of a hat. The site is still statically generated HTML, and I have control over how it is made. It’s a lovely solution.
So, over the weekend I’ve set things up, flipped the switches, and if you’re reading this, you’re reading the first entry written on my iPad and served up through the Netlify CI service.
The next step is to write some little Shortcuts which make the job of creating new entries in the News, Writing, Class and Presentation categories, with the datestamps and other boilerplate set automatically, even quicker, so there’s less friction in making new entries. I’ve done the first draft of the “News” shortcut already, and if you can see this entry, it means it’s worked.
As always, this is a work in progress, and probably things broke as I shifted things around. If you notice anything broken, please let me know. Thanks!
I’m Greg Restall, and this is my personal website. ¶ I am the Shelby Cullom Davis Professor of Philosophy at the University of St Andrews, and the Director of the Arché Philosophical Research Centre for Logic, Language, Metaphysics and Epistemology ¶ I like thinking about – and helping other people think about – logic and philosophy and the many different ways they can inform each other.
To receive updates from this site, subscribe to the RSS feed in your feed reader. Alternatively, follow me at @consequently@hcommons.social, where most updates are posted.