13 July 2016 · 3 minute read
After my recent site redesign my photo publishing workflow is as follows:
imagesfolder of my Hugo-powered site on my computer.
deploy .in the Terminal so Hugo generates the site with latest changes and rsync publishes them here at simongriffee.com.
I did this because:
Here’s a demo. Go ahead and fill it in and click the Save to File button:
index.htmllocally with your web browser, fill in the form fields and click Save To File. You can also put
index.htmlin a folder on your web server so you can access it from any computer, as I’ve done here.
I’ve tested the script on the latest version of Firefox on Mac OS. It also also works on Chrome, but the autocomplete doesn’t seem to work unless the form fields are wrapped in a form tag with the autocomplete attribute (
<form autocomplete="on">…</form>), and when I do this the entire form disappears in Firefox. I’m investigating and appreciate pull requests on GitLab.