<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2026-09-27T17:15:35+00:00</updated><id>/feed.xml</id><title type="html">Mashy D. Green</title><entry><title type="html">DRMeX - A CAKE KE Fellowship on computational methods knowledge exchange</title><link href="/posts/drmex/" rel="alternate" type="text/html" title="DRMeX - A CAKE KE Fellowship on computational methods knowledge exchange" /><published>2026-09-27T00:00:00+00:00</published><updated>2026-09-27T00:00:00+00:00</updated><id>/posts/drmex</id><content type="html" xml:base="/posts/drmex/"><![CDATA[<h2 id="the-generalists-itch">The generalist’s itch</h2>

<p>When I first joined UCL ARC as a research software engineer in 2024, I had to
transition from being a domain expert in my field, to working in a centralised
generalist team on all kinds of research projects I knew very little about. In
our weekly meetings where people were presenting their work, I started to
realise just how wide a range of research our group spans and the fascinating
projects and codes. I often heard about some code we helped develop that could
<a href="https://github.com/SainsburyWellcomeCentre/WAZP">analyse animal tracking data</a>
or create an <a href="https://github-pages.ucl.ac.uk/NextBrain/#/home">atlas of a
brain</a>, <a href="https://github.com/CosmologicalEmulators/Capse.jl">emulate the cosmic
microwave background</a>,
<a href="https://doi.org/10.1016/j.ijdrr.2020.101657">model human responses to
emergencies</a>, <a href="https://doi.org/10.1099/mic.0.001366">map genomes of
understudied pathogens</a> or <a href="https://maeasam.org/">map endangered
archaeological sites</a>.</p>

<p>In all these talks, I learned a lot about what the projects were about, why they
are important, what scientific impact they can make and how our work
contributed to them - all of the achievements that deserve to be celebrated.
However, too often, I was also left feeling like something, at least to me, was
missing. I was left wondering “How would I deal with working on this project?”,
“What does the code that did that bit actually look like?” and “How do the
methods that were used actually solve this problem?”. I realised that, for the
first time, I have the opportunity to gain real insights into so many cool new
computational methods I have never heard about, and I also bet that many of
these methods have some familiar components to them. Maybe, I could learn of
other communities that solve the same kind of numerical problems I encounter but
in a different or better way? Maybe next time I need to clean up a noisy force
signal from an experiment I’ll actually know about a few of the methods that
exist and I would know to ask the right questions so I could find better
solutions? I got curious, and I <strong>have</strong> to know more.</p>

<p>If you are anything like me, I’m sure you can recall numerous long and detailed
talks in seminars and conferences where the speaker presented all these cool
looking advancements with this or some other method that they developed in their
code, but I found very difficult to follow as I had little to no familiarity
with what they were talking about - although the handful of people that were
more familiar with it seemed quite enthusiastic. This made me think if maybe we
could find a way to share just enough background on such work so that more of us
could follow along? If we could, would there be some bits and pieces so that
if/when we encounter some research project doing similar things we might be able
to use these ideas? Maybe we could even find parallels to other problems we
worked on and find novel ways of applying techniques developed for this method
to a totally unrelated problem that has a similar abstract shape?</p>

<h2 id="pollinators-">Pollinators <img src="/assets/images/bee-pollinator.jpg" alt="Illustration of a bee carrying pollen" style="height: 50px; width: 50px; display: inline-block; vertical-align: middle; border-radius: 50%; margin: -10px 0 -10px 0.4em;" /></h2>

<p>Then it hit me - digital research technology professionals and research software
engineers have the potential to be the perfect pollinators of cross-domain
knowledge exchange. We can pick up the core computational implementation of the
methods which we work on and carry it with us to other projects! There aren’t
many roles where highly technical people get to work across such a wide range of
domains as us, and the technical know-how we bring can not only improve the
quality and sustainability of research software, implement some features or
improve its performance, but we can also help shape it based on the knowledge
we can bring from across all the different projects we collectively have
encountered. But for that, we must start discussing the ‘how’, and to do that,
we need to start building a larger vocabulary of methods we are at least
conceptually familiar with so these discussions can start taking place.</p>

<h2 id="testing-it-out-at-arc">Testing it out at ARC</h2>

<p>To try this concept out, I started a small initiative at ARC called ARC
Computational Methods Exchange (ACME) - which led to lots of fun memes in the
talks! - where I had the opportunity to learn a bit about Automatic
Differentiation and Neighbour Searching with CUDA.</p>

<p><img src="/assets/images/acme-acronym-slide.jpg" alt="ACME acronym slide" style="max-width: 480px; width: 100%; display: block; margin: 1rem auto;" /></p>

<p>These talks however were delivered to our High Performance Computing (HPC)
sub-group, which was a bit like preaching to the choir. Eventually, I found a
spot in our weekly wider meetings, ARC Forum, where I was able to present a
session on Numerical Differential Equations to the wider ARC group. The talk was
inspired by a previous talk I gave a few years back in a Doom emacs online
meet-up, titled “From High-school maths to Computational Fluid Dynamics” where I
started off with introducing what a derivative is and built up to applying
finite differences to the Euler equations. That talk was very informal and not
that well structured, so I rewrote it in the format of an <a href="https://github.com/UCL-ARC/NDE">interactive Pluto
notebook</a> and worked hard to ensure it could be
followed by everyone from our research managers who have little to no coding
experience, to seasoned HPC developers, and limited the scope to fit in 30
minutes.</p>

<p>My talk was followed by another researcher at ARC who presented the concepts of
our funding application for a multi-disciplinary project combining numerical
methods with imaging techniques to create a bio-mechanical solver - a project
that was directly inspired by ACME. Unfortunately, the project did not get
funded, but we will certainly try again!</p>

<p>This experience convinced me I was on to something worth pursuing as real
RSE-led research ideas were sprouting out of this, and I just loved to see our
research manager playing around with the notebook and enjoying being included in
“technical talks”!</p>

<h2 id="taking-it-national">Taking it national</h2>

<p>The talk at ARC received great feedback, and there was quite a bit of enthusiasm
by others to create their own talks on methods they would like to share, but I
realised the amount of effort required to create such content would be wasted if
it was limited just to ARC. I decided to try and find a platform where I could
take the concept nationally and applied for a <a href="https://www.cake.ac.uk/about/ke-fellowships/"><img src="/assets/images/cake-logo.png" alt="CAKE logo" style="height: 15px; width: auto; display: inline-block; vertical-align: middle; margin: 0 0.3em 0 0;" />knowledge exchange fellowship</a>,
renaming ACME to Digital Research Methodological eXchange (DRMeX), which I was
overjoyed to have gotten funded! (and only a little sad I wasn’t able to keep
ACME as the name for the memes…) The fellowship will allow me to visit
different dRTP and RSE groups across the UK to give a talk about the initiative,
deliver a sample talk, gain feedback on what participants would like to get out
of it and how the concept could be improved, and crucially recruit participants
and presenters for a DRMeX workshop I will run in mid to late 2027.</p>

<h2 id="get-involved">Get involved</h2>

<p>If any of this seems interesting to you and you would like to participate,
invite me to give a talk to your group or present some method you are excited
about, please visit the <a href="https://drmex.qiuip.uk">DRMeX webpage</a> or <a href="mailto:mashy.green@ucl.ac.uk">contact
me</a> as I would love to discuss this with you!</p>

<hr />

<p><em>Bee illustration: Designed by <a href="https://www.magnific.com">Magnific</a></em></p>]]></content><author><name></name></author><summary type="html"><![CDATA[The generalist’s itch]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://drmex.qiuip.uk/assets/logo-full.svg" /><media:content medium="image" url="https://drmex.qiuip.uk/assets/logo-full.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">My experience building this website with Jekyll and GitHub Pages</title><link href="/posts/first-steps-with-jekyll/" rel="alternate" type="text/html" title="My experience building this website with Jekyll and GitHub Pages" /><published>2025-08-02T00:00:00+00:00</published><updated>2025-08-02T00:00:00+00:00</updated><id>/posts/first-steps-with-jekyll</id><content type="html" xml:base="/posts/first-steps-with-jekyll/"><![CDATA[<p>I started this as a test blog post so I have some content to play around with
while figuring out how to build this site.  However, as this is the first time
I ever build a website or use Jekyll, I thought my process of figuring stuff out
would be a good opportunity to document what I’m learning as I go.</p>

<h2 id="using-github-pages-as-a-website-platform">Using GitHub Pages as a website platform</h2>

<p>One of the main driving factors in choosing Jekyll is that it is very easy
to publish the website on GitHub pages.<br />
One should note that it is better to use the
<a href="https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml">Jekyll workflow action</a> 
rather than the one provided by github as it builds the site in a docker image and
is not restricted by the default github pages limitations (use of plugins, old
version of Jekyll etc.).</p>

<h2 id="markdown-content">Markdown content</h2>

<p>I’ve never been a huge fan of Markdown, probably because I’ve been spoiled by emacs
org-mode, and I often get the syntax confused.  In the future, I will probably
figure out how to automatically publish Jekyll-buildable html directly from org-mode,
but for now, markdown will have to do - and it sure beats writing directly with html.</p>

<h2 id="tweaking-the-theme">Tweaking the theme</h2>

<p>To get started with building the actual site, I thought I’d best find a decent
theme I like and use it as a base for tweaking. This of course has its ups and
downs, but I have no aspiration of becoming a web developer, so I think it is
the fastest path to getting the desired outcome, which is this site. I choose
<a href="https://github.com/a-chacon/awesome-jekyll-theme">Awesome Jekyll Theme</a> for
this purpose, with clear intent to modify it.<br />
This leads to some caveats: everything from here on is based on modifying
“this” theme, which comes with a pre-built Tailwind css present from the Gem
install, and makes the assumption that all the Tailwind features used
are present.  Replicating everything below might not work exactly the same
way with a different theme, so please keep that in mind.</p>

<p>I decided to go down this path mainly because it is really convenient being able
to add only the html and css files I want to change and having them override the
default ones installed (not without some difficulties as you will read about
later).</p>

<p>To get started, I made just a few small tweaks. First, I changed the navbar to
be sticky for simpler navigation. For this, I ended up needing some additional
custom css to overwrite the default behaviour.</p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">nav</span><span class="nc">.sticky</span><span class="o">,</span>
<span class="nc">.sticky-nav</span> <span class="p">{</span>
  <span class="nl">position</span><span class="p">:</span> <span class="o">-</span><span class="n">webkit-sticky</span> <span class="cp">!important</span><span class="p">;</span>
  <span class="nl">position</span><span class="p">:</span> <span class="nb">sticky</span> <span class="cp">!important</span><span class="p">;</span>
  <span class="nl">top</span><span class="p">:</span> <span class="m">0</span> <span class="cp">!important</span><span class="p">;</span>
  <span class="nl">z-index</span><span class="p">:</span> <span class="m">999</span> <span class="cp">!important</span><span class="p">;</span>
  <span class="nl">background-color</span><span class="p">:</span> <span class="nb">inherit</span> <span class="cp">!important</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div></div>

<p>I wrote this to <code class="language-plaintext highlighter-rouge">assets/css/custom.css</code> and loaded this as an additional stylesheet
in <code class="language-plaintext highlighter-rouge">_layouts/default.html</code> , then added the class to <code class="language-plaintext highlighter-rouge">nav</code> object in
<code class="language-plaintext highlighter-rouge">_includes/navbar.html</code>.</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;nav</span> <span class="na">class=</span><span class="s">"sticky top-0 left-0 right-0 z-50 flex w-full flex-wrap items-center justify-between py-4 bg-white dark:bg-neutral-900 shadow-md"</span><span class="nt">&gt;</span>
</code></pre></div></div>

<p>Some other changes I made were to remove the ‘pages’ from the footbar (as I
preder to navigate from the navbar, which is now sticky), and ensure the titles
in the <code class="language-plaintext highlighter-rouge">_layouts/page.html</code> changed colour when switching between dark and light
themes. This last issue actually seems like a bug, so maybe I should open a PR
with this suggested fix. It was only changing</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;h1</span> <span class="na">class=</span><span class="s">"text-left text-2xl font-bold md:text-5xl text-black"</span><span class="nt">&gt;</span>{{page.title}}<span class="nt">&lt;/h1&gt;</span>
</code></pre></div></div>

<p>to</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;h1</span> <span class="na">class=</span><span class="s">"text-left text-2xl font-bold md:text-5xl text-neutral-900 dark:text-neutral-200"</span><span class="nt">&gt;</span>{{page.title}}<span class="nt">&lt;/h1&gt;</span>
</code></pre></div></div>

<p>I then went ahead and changed the home page to remove the side-scroll buttons
and made it more fluid to match my design intension which was pretty straight
forward all things considered. It was a bit of a pain to teak to spacing, but
eventually I got there.</p>

<h2 id="adding-contact_channels">Adding <code class="language-plaintext highlighter-rouge">contact_channels</code></h2>

<p>I wanted to add some more channels I am on which are not part of the theme.
Compared to other things, this was quite straight forward, and I got to learn about
<a href="https://simpleicons.org/">simpleicons.org</a> which I never knew about before!<br />
All it took was to copy the one of the existing blocks in
<code class="language-plaintext highlighter-rouge">_includes/contact_channels.html</code> and replace the label and
img.  For example, for ORCID I added this code block, with the <em>.svg</em> saved in the
corresponding directory.</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code>{% endif %} {% if contact_channels.orcid %}
<span class="nt">&lt;a</span>
  <span class="na">class=</span><span class="s">"transition hover:scale-110 duration-300"</span>
  <span class="na">href=</span><span class="s">"{{ contact_channels.orcid }}"</span>
  <span class="na">target=</span><span class="s">"_blank"</span>
  <span class="na">rel=</span><span class="s">"noopener noreferrer"</span>
  <span class="na">aria-label=</span><span class="s">"ORCID"</span>
<span class="nt">&gt;</span>
  <span class="nt">&lt;img</span>
    <span class="na">class=</span><span class="s">"h-6 w-6 dark:invert"</span>
    <span class="na">src=</span><span class="s">"{{ '/assets/images/contact_channels/orcid.svg' | relative_url }}"</span>
    <span class="na">alt=</span><span class="s">"ORCID Icon"</span>
  <span class="nt">/&gt;</span>
<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>

<p>I ended up adding Google Scholar, ORCID and ResearchGate to the list.</p>

<h2 id="robots-and-maps">Robots and maps</h2>

<p>I asked a web developer friend of mine for some feedback and he suggested I should
add <code class="language-plaintext highlighter-rouge">robots.txt</code> and a sitemap.  I had no idea these things even exist!  Luckily,
with Jekyll this was quite easy.<br />
I added the sitemap with a Jekyll plugin, <code class="language-plaintext highlighter-rouge">jekyll-sitemap</code>, in the <code class="language-plaintext highlighter-rouge">_config.yml</code>
and <code class="language-plaintext highlighter-rouge">Gemfile</code>. That automatically generates the sitemap.<br />
Next is <code class="language-plaintext highlighter-rouge">robots.txt</code>, which suggests to crawlers what to index in the site.
From what I understood, I only need a very basic one, so I just added</p>

<div class="language-yml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">User-agent</span><span class="pi">:</span> <span class="err">*</span>
<span class="na">Disallow</span><span class="pi">:</span>
<span class="na">Sitemap</span><span class="pi">:</span> <span class="pi">{{</span> <span class="nv">site.url</span> <span class="pi">}}</span><span class="s">/sitemap.xml</span>
</code></pre></div></div>

<p>and saved it in the root directory.  As I need the liquid tag (i.e. the things in
<code class="language-plaintext highlighter-rouge">{{ }}</code>) to get built by liquid, I added this line to the <code class="language-plaintext highlighter-rouge">_config.yml</code></p>

<div class="language-yml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">include</span><span class="pi">:</span>
  <span class="pi">-</span> <span class="s">robots.txt</span>
</code></pre></div></div>

<p>These two things should now ensure that the sitemap is built and that it accessible
by crawlers.</p>

<h2 id="meta-title-and-favicon">Meta-title and favicon</h2>

<p>Again, new concepts I never heard of before.  These too were pretty straight forward
to add.<br />
The meta-title is the title you see in the tabs.  I set it with some unicode to fit
the style I’m going for in this site.  I just added the following like to the
<code class="language-plaintext highlighter-rouge">&lt;head&gt;</code> of the default layout</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;title&gt;</span>mdg <span class="err">&amp;</span>#x276f My experience building this website with Jekyll and GitHub Pages<span class="nt">&lt;/title&gt;</span>
</code></pre></div></div>

<p>This again uses liquid to find the title, and I just added a permanent “mdg ❯”
before it as I think it makes more sense than just a title like “about”.</p>

<p>The favicon is the icon in the tab / bookmark etc. which can be quite useful!  I
experimented with using the logo as a favicon but did not like it, so for now I
do not have one.  However, to add it is as simple as adding a line again in the
head of the default layout</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">"icon"</span> <span class="na">href=</span><span class="s">"/assets/favicon.ico"</span> <span class="na">type=</span><span class="s">"image/x-icon"</span>
</code></pre></div></div>

<h2 id="more-fighting-with-tailwind">More fighting with Tailwind</h2>

<p>In general, the thing I found the hardest in building this site is that a lot of
what I read online about how to change things in html, Flexbox and Liquid did
not seem to work. The theme ships with a pre-built Tailwind <code class="language-plaintext highlighter-rouge">dist-style.css</code>, and
if I understood correctly (which I very well might not have!), as I am not building
the Tailwind styles, the Tailwind JIT compiler purged any unused styles from the
pre-built css. Hence, when I tried to use styles that were not there at build time,
their css could not be found and they could not be applied by the browser.<br />
The really issue was that I never really knew which styles were actually available
to me and would work when used in the html, and which would not.<br />
To overcome this limitation, I ended up having to place most changes in the
custom css file in a similar way to the sticky navbar. This included a bunch of
issues with controlling the footer and the navbar in particular.</p>

<p>As an example, to get the a page to fill the screen and to keep the footer at the
bottom of the screen when it under filled, I added a Flexbox to the body with
<code class="language-plaintext highlighter-rouge">min-h-screen</code> to the body will fill the viewport, then wrapped the <code class="language-plaintext highlighter-rouge">content</code> with
a <code class="language-plaintext highlighter-rouge">&lt;main class="flex-grow"&gt;</code></p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;body</span> <span class="na">class=</span><span class="s">"flex flex-col min-h-screen bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-200"</span><span class="nt">&gt;</span>
  {% include navbar.html %}
  <span class="nt">&lt;main</span> <span class="na">class=</span><span class="s">"flex-grow"</span><span class="nt">&gt;</span>
    {{ content }}
  <span class="nt">&lt;/main&gt;</span>
  {% include footer.html %}
<span class="nt">&lt;/body&gt;</span>
</code></pre></div></div>

<p>This should use Flexbox to make the <code class="language-plaintext highlighter-rouge">main</code> area grow and take up all the space not
occupied by the footer in the viewport, so it pushes the footer to the bottom when
there is extra vertical space.<br />
What was needed next is to add <code class="language-plaintext highlighter-rouge">margin-top: auto</code> to the footer in
<code class="language-plaintext highlighter-rouge">assets/css/custom.css</code>.  At first that did not seem to work, so I had to also add
the following</p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">body</span> <span class="o">&gt;</span> <span class="nt">footer</span> <span class="p">{</span>
  <span class="nl">margin-top</span><span class="p">:</span> <span class="nb">auto</span> <span class="cp">!important</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div></div>

<p>Notice the <code class="language-plaintext highlighter-rouge">body &gt; footer</code> bit, which makes sure the css treats the footer as a direct
child of <code class="language-plaintext highlighter-rouge">body</code> when applying the top margin.  From my understanding, it already
<em>should</em> do that if I built the styles with Tailwind myself — but as I could not,
it had to be added this way instead. Finding out such limitations really took me
some time and a lot of trial and error.</p>

<p>Similarly, to gain finer control over other layouts, like the top padding and
the width in the page layout, I could not simply modify the class style in the
layout’s html by changing the values in <code class="language-plaintext highlighter-rouge">pt-20 lg:pt-[90px]</code>, but instead had
to add it to the page layout class without Tailwind commands through the
<code class="language-plaintext highlighter-rouge">assets/css/custom.css</code> like this</p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nf">#page</span> <span class="p">{</span>
  <span class="nl">padding-top</span><span class="p">:</span> <span class="m">25px</span><span class="p">;</span>
  <span class="nl">max-width</span><span class="p">:</span> <span class="m">90ch</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div></div>

<p>Things got much harder when I tried to reduce the footer size. I decided I wanted
all elements of the footer aligned at the bottom, with the contact channels to the
left, copyright notice in the centre, and rss subscription in the right.</p>

<p>This should be simple enough, but figuring out how to untangle it from the
current pre-built styles was not so easy. I ended up using a Flexbox container
which finally did the trick, as adapting the existing style with Tailwind just
did not work. I also wanted to make sure that in mobile view the footer gets
stacked and changes the order so that the rss subscription is in between the others.
To do that, I added some classes to the <code class="language-plaintext highlighter-rouge">custom.css</code> file:</p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">.mobile-only</span> <span class="p">{</span>
  <span class="nl">display</span><span class="p">:</span> <span class="nb">block</span><span class="p">;</span>
<span class="p">}</span>
<span class="nc">.desktop-only</span> <span class="p">{</span>
  <span class="nl">display</span><span class="p">:</span> <span class="nb">none</span><span class="p">;</span>
<span class="p">}</span>

<span class="k">@media</span> <span class="p">(</span><span class="n">min-width</span><span class="p">:</span> <span class="m">768px</span><span class="p">)</span> <span class="p">{</span>
  <span class="nc">.mobile-only</span> <span class="p">{</span>
    <span class="nl">display</span><span class="p">:</span> <span class="nb">none</span> <span class="cp">!important</span><span class="p">;</span>
  <span class="p">}</span>
  <span class="nc">.desktop-only</span> <span class="p">{</span>
    <span class="nl">display</span><span class="p">:</span> <span class="nb">block</span> <span class="cp">!important</span><span class="p">;</span>
  <span class="p">}</span>
<span class="p">}</span>

<span class="k">@media</span> <span class="p">(</span><span class="n">min-width</span><span class="p">:</span> <span class="m">768px</span><span class="p">)</span> <span class="p">{</span>
  <span class="nc">.footer-copyright</span> <span class="p">{</span>
    <span class="nl">align-self</span><span class="p">:</span> <span class="nb">flex-end</span><span class="p">;</span> <span class="c">/* Desktop only */</span>
  <span class="p">}</span>
<span class="p">}</span>

</code></pre></div></div>

<p>These classes are then used in the rss subscription block and change its display
property based on the width of the window. The <code class="language-plaintext highlighter-rouge">footer-copyright</code> is added as an
additional class with <code class="language-plaintext highlighter-rouge">align-self: flex-end</code> to ensure the copyright is aligned
to the bottom better, and also ensures that it only applies on Desktop so that it
doesn’t break the alignment on mobile.</p>

<h2 id="theme-aware-logo">Theme-aware logo</h2>

<p>So I am no designer, but I did want to add some flare to the site.  I thought of
the simplest logo possible that would match the site - a terminal prompt with my
initials.<br />
Finding a prompt icon and adding letters was easy enough, but to get it to work
with the theme properly, I needed to get it in a simple <em>.svg</em> format that I can
embed in the html so that the theme can affect it directly. I used Inkscape to
trace the logo, then edited the <em>XML</em> of the <em>.svg</em> to remove fill and size
information as these will be controlled properly by css using the theme’s 
<code class="language-plaintext highlighter-rouge">currentColor</code> so it adapts with the theme switcher for dark mode, as well
as browser extensions like Dark Reader.</p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">.logo-image</span> <span class="p">{</span>
  <span class="nl">color</span><span class="p">:</span> <span class="nb">inherit</span><span class="p">;</span>
  <span class="nl">display</span><span class="p">:</span> <span class="nb">inline-block</span><span class="p">;</span>
  <span class="nl">overflow</span><span class="p">:</span> <span class="nb">visible</span><span class="p">;</span>
  <span class="nl">max-width</span><span class="p">:</span> <span class="m">100%</span><span class="p">;</span>
<span class="p">}</span>

<span class="nc">.logo-image</span> <span class="nt">svg</span> <span class="nt">path</span> <span class="p">{</span>
  <span class="py">fill</span><span class="p">:</span> <span class="n">currentColor</span><span class="p">;</span>
<span class="p">}</span>

<span class="nc">.logo-image</span> <span class="nt">svg</span> <span class="p">{</span>
  <span class="nl">height</span><span class="p">:</span> <span class="m">1.6rem</span><span class="p">;</span>
  <span class="nl">width</span><span class="p">:</span> <span class="nb">auto</span><span class="p">;</span>
  <span class="nl">display</span><span class="p">:</span> <span class="nb">block</span><span class="p">;</span>
  <span class="nl">padding-top</span><span class="p">:</span> <span class="m">0.22rem</span><span class="p">;</span>
  <span class="nl">overflow</span><span class="p">:</span> <span class="nb">visible</span><span class="p">;</span>
  <span class="nl">shape-rendering</span><span class="p">:</span> <span class="n">geometricPrecision</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div></div>

<p>Of course, I still had to inline the icon itself.  One option was to add
it to the <code class="language-plaintext highlighter-rouge">_include</code> directory and use liquid to inline it, but I really
didn’t want to have a <em>.svg</em> there.  Instead, I wrote a simple ruby plugin
to read and inline it that works perfectly with Jekyll.</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># _plugins/inline_svg.rb</span>
<span class="k">module</span> <span class="nn">Jekyll</span>
  <span class="k">module</span> <span class="nn">InlineSVG</span>
    <span class="k">def</span> <span class="nf">inline_svg</span><span class="p">(</span><span class="n">path</span><span class="p">)</span>
      <span class="n">file_path</span> <span class="o">=</span> <span class="no">File</span><span class="p">.</span><span class="nf">join</span><span class="p">(</span><span class="vi">@context</span><span class="p">.</span><span class="nf">registers</span><span class="p">[</span><span class="ss">:site</span><span class="p">].</span><span class="nf">source</span><span class="p">,</span> <span class="n">path</span><span class="p">)</span>
      <span class="no">File</span><span class="p">.</span><span class="nf">read</span><span class="p">(</span><span class="n">file_path</span><span class="p">)</span>
    <span class="k">end</span>
  <span class="k">end</span>
<span class="k">end</span>

<span class="no">Liquid</span><span class="o">::</span><span class="no">Template</span><span class="p">.</span><span class="nf">register_filter</span><span class="p">(</span><span class="no">Jekyll</span><span class="o">::</span><span class="no">InlineSVG</span><span class="p">)</span>
</code></pre></div></div>

<p>Custom plugins can be added to the <code class="language-plaintext highlighter-rouge">_plugins</code> directory and will automatically
be added to the project, so that’s really cool!  With this plugin, I could
inline the logo with in <code class="language-plaintext highlighter-rouge">_includes/navbar.html</code></p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"logo-image"</span><span class="nt">&gt;</span>
  {{ '/assets/images/logo.svg' | inline_svg }}
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>

<p>I also wanted to change how the breadcrumbs look, so I added this to the navbar
as well</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"pl-4 hidden md:block text-lg font-bold"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"text-mulish text-lg font-normal"</span><span class="nt">&gt;</span>~/posts/first-steps-with-jekyll/<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;/p&gt;</span>
</code></pre></div></div>

<p>Now that looks like a prompt navigation in the navbar - lovely!</p>

<h2 id="better-responsive-design">Better responsive design</h2>

<p>The theme, as lovely as it is, does not have a burger menu for mobile mode, so
that had to be added as well.</p>

<p>As before, I added some css to <code class="language-plaintext highlighter-rouge">custom.css</code></p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">@media</span> <span class="p">(</span><span class="n">min-width</span><span class="p">:</span> <span class="m">768px</span><span class="p">)</span> <span class="p">{</span>
  <span class="nc">.mobile-burger</span> <span class="p">{</span>
    <span class="nl">display</span><span class="p">:</span> <span class="nb">none</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="nc">.desktop-nav</span> <span class="p">{</span>
    <span class="nl">display</span><span class="p">:</span> <span class="nb">flex</span> <span class="cp">!important</span><span class="p">;</span>
    <span class="nl">width</span><span class="p">:</span> <span class="nb">auto</span> <span class="cp">!important</span><span class="p">;</span>
  <span class="p">}</span>

  <span class="nc">.nav-links-container</span> <span class="p">{</span>
    <span class="nl">flex-direction</span><span class="p">:</span> <span class="nb">row</span><span class="p">;</span>
    <span class="nl">padding-top</span><span class="p">:</span> <span class="m">0</span><span class="p">;</span>
  <span class="p">}</span>
<span class="p">}</span>
</code></pre></div></div>

<p>With this in place, I changed the navbar with the following. First, I added the
button itself with the <code class="language-plaintext highlighter-rouge">mobile-burger</code> class that hides the button unless in
mobile view.</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;button</span> <span class="na">id=</span><span class="s">"mobile-menu-toggle"</span> <span class="na">class=</span><span class="s">"mobile-burger"</span> <span class="na">aria-label=</span><span class="s">"Toggle mobile menu"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"1.5"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">class=</span><span class="s">"size-6"</span><span class="nt">&gt;</span>
    <span class="nt">&lt;path</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span> <span class="na">d=</span><span class="s">"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"</span> <span class="nt">/&gt;</span>
  <span class="nt">&lt;/svg&gt;</span>
<span class="nt">&lt;/button&gt;</span>
</code></pre></div></div>

<p>Then, I added a container that is hidden in mobile view and a Flexbox in Desktop
view for the navigation menu itself.</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">id=</span><span class="s">"mobile-menu"</span> <span class="na">class=</span><span class="s">"desktop-nav hidden w-full items-center"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"nav-links-container flex flex-col pt-4"</span><span class="nt">&gt;</span>
    {% for page in site.pages %}
    {% if page.nav %}
    <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"py-2 md:py-0"</span><span class="nt">&gt;&lt;a</span> <span class="na">class=</span><span class="s">"px-4 hover:underline {% if page.url == current_page_url %}font-bold{% endif %}"</span>
            <span class="na">href=</span><span class="s">"{{ page.url | relative_url }}"</span><span class="nt">&gt;</span>{{ page.title | default: page.name }}<span class="nt">&lt;/a&gt;&lt;/div&gt;</span>
    {% endif%}
    {% endfor %}

    <span class="c">&lt;!-- theme mode switcher from original code --&gt;</span>

  <span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>

<p>The switching ‘on’ of the Flexbox is controlled by the <code class="language-plaintext highlighter-rouge">desktop-nav</code> class,
and the mobile view with the <code class="language-plaintext highlighter-rouge">nav-links-container</code> class.</p>

<h2 id="bibtex-with-jekyll-scholar-ruby-plugins-and-more-custom-css">Bibtex with jekyll-scholar, ruby plugins and more custom css</h2>

<p>The final thing I wanted to get working in the site in a nice publications
page.<br />
Browsing around, the best example I could find was from
<a href="https://davidmoxey.uk/publications/">Prof. David Moxey</a> (or Dave), my PI during
my last postdoc position. I saw he used
<a href="https://github.com/inukshuk/jekyll-scholar">jekyll-scholar</a>, but try as I might,
I could not figure out how to control the bibtex entries, not to mention the badges
to show the BibTeX entry and abstracts, features I absolutely loved and wanted
on my site!<br />
So, I reached out to Dave, and he was kind enough to give me some pointers to
what he has done and granted me access to his site’s repo so I can learn from
the code itself.</p>

<p>With this as a reference, I set out three goals for this section:</p>

<ol>
  <li>Highlight my name in the reference;</li>
  <li>DOI and URLs should actually be hyperlinks;</li>
  <li>The cool badges for the BibTeX and Abstract windows!</li>
</ol>

<p>The first thing to do is configure jekyll-scholar with the regular parameters
to format the bibliography entries as html. Going over the docs, it needed
the following added to <code class="language-plaintext highlighter-rouge">_config.yml</code></p>

<div class="language-yml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">scholar</span><span class="pi">:</span>
 <span class="na">style</span><span class="pi">:</span> <span class="s">_bibliography/ieee.csl</span>
 <span class="na">locale</span><span class="pi">:</span> <span class="s">en</span>
 <span class="na">source</span><span class="pi">:</span> <span class="s">./_bibliography</span>
 <span class="na">bibliography</span><span class="pi">:</span> <span class="s">mashy.bib</span>
</code></pre></div></div>

<p>Going over Dave’s site and reading up some more on jekyll-scholar, I realised that
it uses <a href="https://github.com/inukshuk/citeproc-ruby">CiteProc-Ruby</a> to parse the
BibTeX and returns formatted html, so it is very hard to interact and adapt it
<em>after</em> it is formated to html.  Hence, the way to modify the entries is by
using custom ruby plugins. I shamelessly copied the plugins from Dave and placed
them in <code class="language-plaintext highlighter-rouge">_plugins</code>. I only needed two of the plugins: the first is a simple one that
strips the html <code class="language-plaintext highlighter-rouge">&lt;div&gt;</code> from the jekyll-scholar reference which I will discuss
later.  The other and far more important plugin is <code class="language-plaintext highlighter-rouge">highlight_name.rb</code>, which I stripped
down to just do what I wanted</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">module</span> <span class="nn">Jekyll</span>
  <span class="k">module</span> <span class="nn">HighlightName</span>
    <span class="k">def</span> <span class="nf">highlightname</span><span class="p">(</span><span class="n">input</span><span class="p">)</span>
      <span class="c1"># Highlight name</span>
      <span class="n">input</span> <span class="o">=</span> <span class="n">input</span><span class="p">.</span><span class="nf">gsub</span><span class="p">(</span><span class="sr">/(M\. D\. Green)/</span><span class="p">,</span> <span class="s1">'&lt;strong style="border-bottom: 1px solid #000"&gt;\1&lt;/strong&gt;'</span><span class="p">)</span>

      <span class="c1"># Add DOI link if tagged</span>
      <span class="k">if</span> <span class="n">input</span><span class="p">.</span><span class="nf">include?</span><span class="p">(</span><span class="s2">"#doi#"</span><span class="p">)</span>
        <span class="n">input</span> <span class="o">=</span> <span class="n">input</span><span class="p">.</span><span class="nf">gsub</span><span class="p">(</span><span class="sr">/#doi#(.*?)#edoi#/</span><span class="p">,</span> <span class="s1">'&lt;a href="https://doi.org/\1" target="_blank" rel="noopener noreferrer"&gt;\1&lt;/a&gt;'</span><span class="p">)</span>
      <span class="k">end</span>

      <span class="c1"># Add URL link if found</span>
      <span class="k">if</span> <span class="n">input</span> <span class="o">=~</span> <span class="sr">/Available at:\s+(https?:\/\/[^\s&lt;]+)/</span>
        <span class="n">input</span> <span class="o">=</span> <span class="n">input</span><span class="p">.</span><span class="nf">gsub</span><span class="p">(</span><span class="sr">/Available at:\s+(https?:\/\/[^\s&lt;]+)/</span><span class="p">)</span> <span class="k">do</span>
          <span class="n">url</span> <span class="o">=</span> <span class="no">Regexp</span><span class="p">.</span><span class="nf">last_match</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
          <span class="sx">%Q{Available at: &lt;a href="</span><span class="si">#{</span><span class="n">url</span><span class="si">}</span><span class="sx">" target="_blank" rel="noopener noreferrer"&gt;</span><span class="si">#{</span><span class="n">url</span><span class="si">}</span><span class="sx">&lt;/a&gt;}</span>
        <span class="k">end</span>
      <span class="k">end</span>
    <span class="k">end</span>
  <span class="k">end</span>
<span class="k">end</span>

<span class="no">Liquid</span><span class="o">::</span><span class="no">Template</span><span class="p">.</span><span class="nf">register_filter</span><span class="p">(</span><span class="no">Jekyll</span><span class="o">::</span><span class="no">HighlightName</span><span class="p">)</span>
</code></pre></div></div>

<p>This plugin dose 3 things.  The first is to gobble the text, find my name and change
the text to bold with an underline for better visibility.  The second is to look
for custom <em>doi</em> tags <code class="language-plaintext highlighter-rouge">#doi#</code> and <code class="language-plaintext highlighter-rouge">#edoi#</code>, then create a hyperlink from the text
between them. For that, I had to modify the BibTeX style to add these tags with</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;text variable="DOI" prefix=". #doi#" suffix="#edoi#" /&gt;
</code></pre></div></div>

<p>The last relies on the specific formatting in the <em>ieee</em> format for URLs to match
“Available at:”, gobble the url text and turn it into a hyperlink.</p>

<p>That takes care of goals 1 and 2. Goal 3 was rather more fun. The way to adapt
the formatting of each reference is using a specific html layout for jekyll-scholar.
To do this, I created a new layout in <code class="language-plaintext highlighter-rouge">_layouts/bib.html</code> and added it to the config</p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">scholar</span><span class="o">:</span>
 <span class="nt">bibliography_template</span><span class="o">:</span> <span class="nt">bib</span>
</code></pre></div></div>

<p>Once again, I shameless copied Dave’s code and started adapted it to my needs. A major
point of difference is that Dave was using jQuery, whcih I did not want to install in
the site, to create the animated boxes with <code class="language-plaintext highlighter-rouge">slideToggle</code>, so instead I ended up
writing some javascript to replicate that same behaviour., as well as some more custom
css to control the animations.</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">id=</span><span class="s">"{{ key }}"</span><span class="nt">&gt;</span>
  {{ reference | strip_div }}

  {% if entry.bibtex and entry.type != 'speech' %}
    <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-bibtex"</span> <span class="na">onclick=</span><span class="s">"slideToggle('bibtex-{{ entry.key }}')"</span><span class="nt">&gt;</span>BibTeX<span class="nt">&lt;/span&gt;</span>
  {% endif %}

  {% if entry.abstract %}
    <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"badge badge-abstract"</span> <span class="na">onclick=</span><span class="s">"slideToggle('abstract-{{ entry.key }}')"</span><span class="nt">&gt;</span>Abstract<span class="nt">&lt;/span&gt;</span>
  {% endif %}

  {% if entry.bibtex and entry.type != 'speech' %}
    <span class="nt">&lt;pre</span> <span class="na">id=</span><span class="s">"bibtex-{{ entry.key }}"</span> <span class="na">class=</span><span class="s">"bibtex-block"</span><span class="nt">&gt;</span>{{ entry.bibtex }}<span class="nt">&lt;/pre&gt;</span>
  {% endif %}

  {% if entry.abstract %}
    <span class="nt">&lt;div</span> <span class="na">id=</span><span class="s">"abstract-{{ entry.key }}"</span> <span class="na">class=</span><span class="s">"abstract-block"</span><span class="nt">&gt;</span>{{ entry.abstract }}<span class="nt">&lt;/div&gt;</span>
  {% endif %}
<span class="nt">&lt;/div&gt;</span>

<span class="nt">&lt;script&gt;</span>
<span class="kd">function</span> <span class="nf">slideToggle</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
  <span class="kd">const</span> <span class="nx">el</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nf">getElementById</span><span class="p">(</span><span class="nx">id</span><span class="p">);</span>
  <span class="k">if </span><span class="p">(</span><span class="o">!</span><span class="nx">el</span><span class="p">)</span> <span class="k">return</span><span class="p">;</span>

  <span class="k">if </span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">&amp;&amp;</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">!==</span> <span class="dl">'</span><span class="s1">0px</span><span class="dl">'</span><span class="p">)</span> <span class="p">{</span>
    <span class="c1">// Collapse</span>
    <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">scrollHeight</span> <span class="o">+</span> <span class="dl">'</span><span class="s1">px</span><span class="dl">'</span><span class="p">;</span> <span class="c1">// set current height to trigger transition</span>
    <span class="nx">el</span><span class="p">.</span><span class="nx">classList</span><span class="p">.</span><span class="nf">remove</span><span class="p">(</span><span class="dl">'</span><span class="s1">expanded</span><span class="dl">'</span><span class="p">);</span>         <span class="c1">// remove gap</span>
    <span class="nf">requestAnimationFrame</span><span class="p">(()</span> <span class="o">=&gt;</span> <span class="p">{</span>
      <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="dl">'</span><span class="s1">0px</span><span class="dl">'</span><span class="p">;</span>
    <span class="p">});</span>
  <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
    <span class="c1">// Expand</span>
    <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="dl">'</span><span class="s1">0px</span><span class="dl">'</span><span class="p">;</span>                 <span class="c1">// first reset to zero</span>
    <span class="nx">el</span><span class="p">.</span><span class="nx">classList</span><span class="p">.</span><span class="nf">add</span><span class="p">(</span><span class="dl">'</span><span class="s1">expanded</span><span class="dl">'</span><span class="p">);</span>            <span class="c1">// then add gap</span>
    <span class="nf">requestAnimationFrame</span><span class="p">(()</span> <span class="o">=&gt;</span> <span class="p">{</span>
      <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">scrollHeight</span> <span class="o">+</span> <span class="dl">'</span><span class="s1">px</span><span class="dl">'</span><span class="p">;</span>
    <span class="p">});</span>
  <span class="p">}</span>
<span class="p">}</span>
<span class="nt">&lt;/script&gt;</span>
</code></pre></div></div>

<p>This layout is where that first ruby plugin I mentioned earlier to strip the
<code class="language-plaintext highlighter-rouge">&lt;div&gt;</code> from the html is used</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">module</span> <span class="nn">Jekyll</span>
  <span class="k">module</span> <span class="nn">StripDiv</span>
    <span class="k">def</span> <span class="nf">strip_div</span><span class="p">(</span><span class="n">input</span><span class="p">)</span>
      <span class="n">input</span><span class="p">.</span><span class="nf">gsub</span><span class="p">(</span><span class="sr">/^&lt;div id=\".*?\"&gt;(.*?)&lt;\/div&gt;$/m</span><span class="p">,</span> <span class="s1">'\1'</span><span class="p">)</span>
    <span class="k">end</span>
  <span class="k">end</span>
<span class="k">end</span>

<span class="no">Liquid</span><span class="o">::</span><span class="no">Template</span><span class="p">.</span><span class="nf">register_filter</span><span class="p">(</span><span class="no">Jekyll</span><span class="o">::</span><span class="no">StripDiv</span><span class="p">)</span>
</code></pre></div></div>

<p>To make sense of the layout, I should also include the css</p>

<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">.badge</span> <span class="p">{</span>
  <span class="nl">display</span><span class="p">:</span> <span class="nb">inline-block</span><span class="p">;</span>
  <span class="nl">padding</span><span class="p">:</span> <span class="m">2px</span> <span class="m">6px</span><span class="p">;</span>
  <span class="nl">color</span><span class="p">:</span> <span class="nf">var</span><span class="p">(</span><span class="l">--polar-night-0</span><span class="p">);</span>
  <span class="nl">font-size</span><span class="p">:</span> <span class="m">0.75rem</span><span class="p">;</span>
  <span class="nl">font-weight</span><span class="p">:</span> <span class="m">600</span><span class="p">;</span>
  <span class="nl">border-radius</span><span class="p">:</span> <span class="m">4px</span><span class="p">;</span>
  <span class="nl">text-decoration</span><span class="p">:</span> <span class="nb">none</span><span class="p">;</span>
  <span class="nl">margin-left</span><span class="p">:</span> <span class="m">8px</span><span class="p">;</span>
  <span class="nl">cursor</span><span class="p">:</span> <span class="nb">pointer</span><span class="p">;</span>
<span class="p">}</span>

<span class="nt">pre</span><span class="nc">.bibtex-block</span><span class="o">,</span>
<span class="nt">div</span><span class="nc">.abstract-block</span> <span class="p">{</span>
  <span class="nl">background</span><span class="p">:</span> <span class="nf">var</span><span class="p">(</span><span class="l">--color-gray-200</span><span class="p">);</span>
  <span class="nl">border-left</span><span class="p">:</span> <span class="m">4px</span> <span class="nb">solid</span> <span class="nf">var</span><span class="p">(</span><span class="l">--frost-blue</span><span class="p">);</span>
  <span class="nl">padding</span><span class="p">:</span> <span class="m">0px</span><span class="p">;</span>
  <span class="nl">margin</span><span class="p">:</span> <span class="m">0</span><span class="p">;</span>
  <span class="nl">font-size</span><span class="p">:</span> <span class="m">0.9rem</span><span class="p">;</span>
  <span class="nl">overflow-x</span><span class="p">:</span> <span class="nb">auto</span><span class="p">;</span>
  <span class="nl">color</span><span class="p">:</span> <span class="nf">var</span><span class="p">(</span><span class="l">--color-gray-900</span><span class="p">);</span>

  <span class="nl">height</span><span class="p">:</span> <span class="m">0</span><span class="p">;</span>
  <span class="nl">overflow</span><span class="p">:</span> <span class="nb">hidden</span><span class="p">;</span>
  <span class="nl">transition</span><span class="p">:</span> <span class="n">height</span> <span class="m">0.3s</span> <span class="nb">ease</span><span class="p">,</span> <span class="n">margin-top</span> <span class="m">0.3s</span> <span class="nb">ease</span><span class="p">;</span>
<span class="p">}</span>

<span class="nt">pre</span><span class="nc">.bibtex-block.expanded</span><span class="o">,</span>
<span class="nt">div</span><span class="nc">.abstract-block.expanded</span> <span class="p">{</span>
  <span class="nl">margin-top</span><span class="p">:</span> <span class="m">8px</span><span class="p">;</span>
<span class="p">}</span>

<span class="nc">.badge-bibtex</span> <span class="p">{</span>
  <span class="nl">background-color</span><span class="p">:</span> <span class="nf">var</span><span class="p">(</span><span class="l">--aurora-green</span><span class="p">);</span>
<span class="p">}</span>
<span class="nc">.badge-bibtex</span><span class="nd">:hover</span> <span class="p">{</span>
  <span class="nl">background-color</span><span class="p">:</span> <span class="nf">color-mix</span><span class="p">(</span><span class="n">in</span> <span class="n">srgb</span><span class="p">,</span> <span class="nf">var</span><span class="p">(</span><span class="l">--aurora-green</span><span class="p">)</span> <span class="m">80%</span><span class="p">,</span> <span class="nx">white</span><span class="p">);</span>
<span class="p">}</span>

<span class="nc">.badge-abstract</span> <span class="p">{</span>
  <span class="nl">background-color</span><span class="p">:</span> <span class="nf">var</span><span class="p">(</span><span class="l">--frost-cyan</span><span class="p">);</span>
<span class="p">}</span>
<span class="nc">.badge-abstract</span><span class="nd">:hover</span> <span class="p">{</span>
  <span class="nl">background-color</span><span class="p">:</span> <span class="nf">color-mix</span><span class="p">(</span><span class="n">in</span> <span class="n">srgb</span><span class="p">,</span> <span class="nf">var</span><span class="p">(</span><span class="l">--frost-cyan</span><span class="p">)</span> <span class="m">80%</span><span class="p">,</span> <span class="nx">white</span><span class="p">);</span>
<span class="p">}</span>
</code></pre></div></div>

<p>Hopefully, after the explanations in the previous sections, this should
be clear enough, and as this blogpost is already far too long, I will leave
the details of how this all works out.  If anyone is interested, feel free
to contact me and I can either provide more details in private or try and
write a shorter and more comprehensive dedicated post on this
specifically.</p>

<h2 id="final-thoughts">Final thoughts</h2>

<p>I learned a lot in the week I’ve been working on this website and I’m mostly
happy with the result. I found starting from a theme was in fact very limiting
and resulted in me applying ‘fixes’ and ‘patches’ over things rather than
actually designing them that way from the start. I ended up with some probably
over-complicated code. The biggest pain was dealing with Tailwind and Flexbox -
I really only gained a vague idea what they are doing as the theme used a
pre-built Tailwind styles file that provided css for only some class styles
under the hood in a way that was not transparent to me. This really made 
granular control of some things I wanted to do much more difficult than it had
to be.<br />
It is entirely possible that if I built everything from the ground-up, these
tools would not have been so difficult to work with.</p>

<p>Saying that, I certainly got a better result within this single week, having no
prior web-related development experience <em>at all</em> (not even plain html or css,
and certainly nothing with Jekyll, Tailwind or Flexbox), than I would had if I
started from scratch. The theme threw me straight into the deep end and I was
exposed to a lot more than I would have been otherwise, so I probably also
gained quite a lot going with this approach.</p>

<p>So my final conclusion is that as I already spent a full week of my annual leave
on this site and it is functioning well enough, I will leave it as it is for
now. Next summer, I will use everything I learned this time and design a similar
Jekyll-based site from scratch without using any pre-configured themes and
hopefully be able to keep things much simpler and leaner.</p>

<p>Until that time, hope you found some things here useful - I certainly
did!</p>]]></content><author><name></name></author><summary type="html"><![CDATA[I started this as a test blog post so I have some content to play around with while figuring out how to build this site. However, as this is the first time I ever build a website or use Jekyll, I thought my process of figuring stuff out would be a good opportunity to document what I’m learning as I go.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://logowik.com/content/uploads/images/jekyll9779.logowik.com.webp" /><media:content medium="image" url="https://logowik.com/content/uploads/images/jekyll9779.logowik.com.webp" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>