Current Blog Workflow
January 20, 2018
So, now I’ve started getting this site live there’s starting to be some kind of workflow forming, which is nice, although it certainly won’t be anything like optimal.
Starting from a booted netbook, a post editing session looks like this:
- open terminal in the _posts directory - If I’m in GUI mode.
tmux- I’m going to be splitting the term into a few “windows”
ctrl-b % ctrl-b "- gives a vertical pane on the left and 2 smaller panes on the right
jekyll serve- starts jekyll watching, rebuilding and serving the site locally
nano myblogpost.md- in the bigger left pane, to start editing
- other pane is my terminal - for any other stuff I want to see/do
F5- edit text, save it, switch to browser and refresh.
… and that’s about it for editing.
Once I’m done and it needs publishing, I have a little publish script which handles doing a final rebuild and rsync to my Pi server. It looks like this:
#!/bin/bash jekyll build if [ $? -eq 0 ] then rsync -r --checksum _site firstname.lastname@example.org:/path/to/termfool fi
So my end-of-editing process looks like:
ctrl-xin nano - quit nano
./publish- rebuild and rsync with the public server
- check in a couple of browsers - just in case I screwed up
git add; git commit -am 'blah'- get it all into local git
git push origin master- get it all into my remote git repo
- shutdown - turn off the netbook