Week 8, day 1 at RC
I’m back! Two weeks ago, RC held Never Graduate Week. I missed it, to be able to sort, store, donate, sell all my stuff in Montréal. Yes, I’m getting ready to be a digital nomad for a few months1. Last week was week 7 for my batch. Konstantinos and I submitted our proceedings paper, titled “A Bayesian’s journey to a better research workflow” (and I spent the rest of the week mostly recovering from it).
Week 7 for Spring 2 (my batch) also means week 1 for Summer 1, the new batch! In this new batch, I have already met a couple people who cannot settle for programming-for-the-sake-of-programming, which delights me. I enjoyed the lengthy brainstorming session I had with Avery, some elements of which reminded of this LibrePlanet 2017 talk by Shauna Gordon-McKeon.
Today, I’m in shock after the Eurocratic putsch that happened in Italy2. So,
I decided to tackle a project which would not mobilize all of my intellectual
and emotional resources (e.g., not learning
Haskell). Let us consider this very blog you are
reading now. I have been meaning to display the tags which I specify for each
blog post: As you can see in the source of, say, the latest
post,
I have been using the tags
key in the
YAML header.
But I have not been writing its value properly! I found this
blog post
and realized that my comma-separated tags should be wrapped in [ ]
to form an
array. I paired with Daniel who, unlike me, is an
experienced web developer. Where does the HTML get put together? Exploring the
tree from the root directory, we found that
_layouts/
contained .html
files with code showing attributes title
and date
, just
like the keys used in the YAML header.
Here
is the basic functionality (and styling). Once I remembered that _site/
contained only build artifacts (and, indeed, this directory is
not tracked),
it was not too hard to figure out which file to edit for styling. I should also
thank Daniel for teaching me the S
shortcut in vim: Delete line and enter
insert mode in one key stroke! Next, I should handle the non-array
comma-separated syntax I used to use in tags.