<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  
  <title>Štěpán&#39;s Blog [EN]</title>
  <subtitle>English posts from my blog</subtitle>
  <link href="https://stepanzak.cc/feed.xml" rel="self" />
  <link href="https://stepanzak.cc/" />
  <updated>2026-09-12T22:00:00Z</updated>
  <id>https://stepanzak.cc/</id>
  <author>
    <name>Štěpán Žák</name>
  </author>
  <entry>
    <title>My website don&#39;t need no JavaScript!</title>
    <link href="https://stepanzak.cc/blog/removing-javascript/" />
    <updated>2026-09-12T22:00:00Z</updated>
    <id>https://stepanzak.cc/blog/removing-javascript/</id>
    <content type="html">&lt;p&gt;In the past weeks, I put a lot of effort into making this website work without JavaScript as much as possible. &lt;p&gt;Don&#39;t get me wrong - I love JavaScript, and use it for many fun features across my site. However, I also want it to work for people with JavaScript disabled. Fortunately, modern CSS - or even just HTML - can replace many use cases where scripting would have been needed just a few years ago. &lt;p&gt;Using Eleventy as a static site generator also gives me some opportunities to move logic from client to the server, to be executed during build time. &lt;div class=callout data-callout=warning&gt; &lt;div class=callout-title&gt; &lt;div class=callout-title-icon&gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;24&quot; height=&quot;24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; stroke-width=&quot;2&quot; class=&quot;lucide lucide-alert-triangle&quot; viewBox=&quot;0 0 24 24&quot;&gt;&lt;path d=&quot;m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4M12 17h.01&quot;/&gt;&lt;/svg&gt; &lt;/div&gt; &lt;div class=callout-title-inner&gt;Warning&lt;/div&gt; &lt;/div&gt; &lt;div class=callout-content&gt;&lt;p&gt;This post assumes you know HTML, CSS and JavaScript. Some parts also talk about Eleventy, but you&#39;ll probably understand without knowing it. &lt;/div&gt;&lt;/div&gt;&lt;h2&gt;Hamburger menu&lt;/h2&gt; &lt;div class=callout data-callout=note&gt; &lt;div class=callout-title&gt; &lt;div class=callout-title-icon&gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;24&quot; height=&quot;24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; stroke-width=&quot;2&quot; class=&quot;lucide lucide-pencil&quot; viewBox=&quot;0 0 24 24&quot;&gt;&lt;path d=&quot;M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5ZM15 5l4 4&quot;/&gt;&lt;/svg&gt; &lt;/div&gt; &lt;div class=callout-title-inner&gt;Note&lt;/div&gt; &lt;/div&gt; &lt;div class=callout-content&gt;&lt;p&gt;Updated to be more accessible. Thanks to &lt;a href=https://dragonscave.space/@jyarbrough&gt;Justin Yarbrough&lt;/a&gt; for pointing out the flaws! &lt;/div&gt;&lt;/div&gt;&lt;p&gt;The (mobile only) hamburger menu has been a hot pile of mess ever since I added it. &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=Bz68cs command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/llr4vbyxopsk9xul2z9o?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; width=550 alt=&quot;Screenshot of really messy and complicated JavaScript code&quot; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Yes, this is the actual code powering the hamburger menu before the rewrite 🥶 &lt;p&gt;Here&#39;s how I replaced the logic with pure CSS: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;header&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;input&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; type&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;checkbox&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; id&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;burger-menu-checkbox&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; aria-label&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;Toggle menu&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;header&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;label&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; for&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;burger-menu-checkbox&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; id&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;burger-menu-label&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; aria-hidden&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;true&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;label&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; id&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;menu&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;    &amp;lt;!-- menu content --&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Toggling the menu is done by (un)checking the checkbox. It has an icon defined in CSS. Notice the &lt;code&gt;&amp;lt;label&gt;&lt;/code&gt; element - it will be important later. &lt;p&gt;Now to the CSS: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;/* style the checkbox */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;#&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;burger-menu-checkbox&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  appearance&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; none&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt; /* hide the default box and check mark */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  width&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 4&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;rem&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  height&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 4&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;rem&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  background&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt; url&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;/images/icons/burger-menu.svg&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;);&lt;/span&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt; /* custom icon */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;/* hide the label and menu */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;#&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;burger-menu-label&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; #&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;menu&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;  {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  display&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; none&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;/* show the label if the checkbox is checked.&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;   Put it across the whole screen */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;header&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;has&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(#&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;burger-menu-checkbox&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;checked&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; +&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; label&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;#&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;burger-menu-label&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  display&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; block&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  position&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; fixed&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  top&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 0&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  width&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 100&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;vw&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  height&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 100&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;vh&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  z-index&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 1&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  backdrop-filter&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; blur&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt;1&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;px&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; brightness&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt;90&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;%&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;/* show the menu if the checkbox is checked */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;header&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;has&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(#&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;burger-menu-checkbox&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;checked&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; ~&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; #&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;menu&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  display&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; block&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  position&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; fixed&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  top&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 4&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;rem&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  width&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 100&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;%&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  z-index&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 2&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt; /* the menu is above the label */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;header&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  z-index&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 3&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt; /* header is above both label and menu */&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This is a well known technique called &lt;em&gt;the checkbox hack&lt;/em&gt;, but with a twist I believe I might be the first person to come up with: &lt;p&gt;When the menu is opened, I show the &lt;code&gt;&amp;lt;label&gt;&lt;/code&gt;. It doesn&#39;t have any text, but everything behind it is slightly dimmed and blurred. It covers the whole screen, but is &lt;strong&gt;under&lt;/strong&gt; the menu, which means that anywhere you click outside of the menu, you click on the label. It&#39;s a standard HTML feature that clicking on a label toggles the checkbox it belongs to. &lt;p&gt;The menu can now be dismissed by clicking outside, just like the user expects. All without JavaScript! &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=m2Mf32 command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/kjugumip7eegyzbvzbvk?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&quot;video of me clicking on the menu and then closing it by clicking outside. my nail is pink&quot; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;I eventually had to use JavaScript for some quality-of-life improvements and accessibility, but the menu is fully functional without it. &lt;h2&gt;Language filtering&lt;/h2&gt; &lt;p&gt;On pages with lists of posts (&lt;code&gt;/blog&lt;/code&gt; and tag pages), there&#39;s a drop-down select to only show posts written in a certain language. &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=dMYX0B command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/oc1ffythndztp1ltr7te?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;Open language filter dropdown with &quot;No filter&quot;, czech and english options&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Using the Liquid templating languge, which is the default in Eleventy, I&#39;m generating the list of posts. Each posts is a &lt;code&gt;&amp;lt;li&gt;&lt;/code&gt; with a class indicating its language - that is &lt;code&gt;language-czech&lt;/code&gt; or &lt;code&gt;language-english&lt;/code&gt;. &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  {%-&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; for&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; post&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; in&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; collections&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;blogpost&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; reversed&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt; -&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;%}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;language-&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; post&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;data&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;language&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; }}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;      ...&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  {%-&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; endfor&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; -%}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This is how the rendered HTML of the page looks like: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;select&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; id&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;languageFilter&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; selected&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; value&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;all&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;No filter&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; value&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;english&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;English posts only&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; value&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;czech&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Czech posts only&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;select&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;ol&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;post-list&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;language-english&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt; ... &lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;language-english&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt; ... &lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;language-czech&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt; ... &lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;ol&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Using just two CSS selectors (one for each language), I implemented the filter without any JavaScript: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;#&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;languageFilter&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;has&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;[&lt;/span&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;value&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;czech&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;]:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;checked&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; +&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; .&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;post-list&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; li&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;not&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(.&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;language-czech&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  display&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; none&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;#&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;languageFilter&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;has&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;option&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;[&lt;/span&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;value&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;english&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;]:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;checked&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; +&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; .&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;post-list&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; li&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;not&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;(.&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;language-english&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  display&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; none&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;In human language, this is what the first one means: &lt;ul&gt; &lt;li&gt;Find element with id &lt;code&gt;languageFilter&lt;/code&gt; that contains an &lt;code&gt;&amp;lt;option&gt;&lt;/code&gt; element with value &lt;code&gt;czech&lt;/code&gt; and which is selected. &lt;li&gt;Find element with class &lt;code&gt;post-list&lt;/code&gt; that is right after it. &lt;li&gt;Find all &lt;code&gt;&amp;lt;li&gt;&lt;/code&gt; elements inside which do &lt;strong&gt;not&lt;/strong&gt; have a class &lt;code&gt;language-czech&lt;/code&gt;. &lt;li&gt;Hide them. &lt;/ul&gt; &lt;p&gt;In simpler words - &lt;em&gt;If the filter is &lt;code&gt;czech&lt;/code&gt;, hide all posts without the &lt;code&gt;language-czech&lt;/code&gt; class.&lt;/em&gt; &lt;p&gt;The second selector is the same but for English. It would be fairly simple to generate these rules automatically for any number of languages - I even began with the implementation, but then I realized I&#39;m not going to learn a new language any time soon, so I might as well keep it simple. &lt;h2&gt;Music status&lt;/h2&gt; &lt;p&gt;I have a widget on the home page that displays which song I am currently listening to. It pulls the song info from &lt;a href=https://listenbrainz.org/&gt;ListenBrainz&lt;/a&gt;, and also fetches cover art. &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=vCPLA- command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/gbux1oluzdconfqzxdmi?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; width=500 alt=&quot;music status widget showing the song Ghost by Nwutral Milk Hotel&quot; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;There&#39;s no way I could do it without JavaScript. Luckily, someone named &lt;em&gt;&lt;strong&gt;Catou&lt;/strong&gt;&lt;/em&gt; &lt;a href=https://anilist.co/forum/thread/79756&gt;made a free API&lt;/a&gt; for ListenBrainz that that returns an image. I can just put the image on my website and every time a user loads the image, it will have the current song. &lt;p&gt;It&#39;s appearance is not very customizable, and neither is the functionality. And it&#39;s not accessible. But it doesn&#39;t require JavaScript, because it&#39;s just a regular &lt;code&gt;&amp;lt;img&gt;&lt;/code&gt; for what the browser is concerned. &lt;p&gt;Fortunately, I don&#39;t have to choose between the two options. I can put the image version inside a &lt;code&gt;&amp;lt;noscript&gt;&lt;/code&gt; tag, which is rendered only in browsers without JavaScript. &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;noscript&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;img&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; src&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;https://aoi.tana.moe/stepanz?color_mode=light&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; width&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;100%&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; alt&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;music status from listenbrainz. enable javascript for accessible version.&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;noscript&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This is how it looks like: &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=F16FFa command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/rspgq0fajx7mrwwuok5p?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; width=500 alt=&quot;same music status as above but as an image and without some details&quot; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Now I just need to hide the (nonfunctional) JS version. Hiding elements in browsers without JavaScript is also going to be useful later, and the method I use comes from &lt;a href=https://www.matuzo.at/blog/2026/html-boilerplate#javascript-support-optional&gt;Manuel Matuzović&#39;s article&lt;/a&gt;: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;html&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; lang&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;en&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;no-js&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;head&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;script&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    document&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;documentElement&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;classList&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;replace&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&#39;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;no-js&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&#39;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &#39;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;js&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&#39;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;script&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The &lt;code&gt;&amp;lt;html&gt;&lt;/code&gt; element has a &lt;code&gt;no-js&lt;/code&gt; class, but that class is replaced with &lt;code&gt;js&lt;/code&gt;. If JavaScript is disabled, the replacing code doesn&#39;t run and so &lt;code&gt;no-js&lt;/code&gt; is kept. Clever. &lt;p&gt;I can now create an utility class that hides an element if JS is disabled: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;html&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;no-js&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; .&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;_hide-on-nojs&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;  display&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; none&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; !important&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;All I had to do at this point was to give the regular music status a &lt;code&gt;_hide-on-nojs&lt;/code&gt; class, and I was done. &lt;h2&gt;Pop-ups&lt;/h2&gt; &lt;p&gt;This one is easy, because all modern browsers now support the &lt;code&gt;&amp;lt;dialog&gt;&lt;/code&gt; element: &lt;blockquote&gt; &lt;p&gt;The &lt;code&gt;&amp;lt;dialog&gt;&lt;/code&gt; HTML element represents a modal or non-modal dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow. (&lt;a href=https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog&gt;MDN&lt;/a&gt;) &lt;/blockquote&gt; &lt;p&gt;My code for the &lt;em&gt;RSS&lt;/em&gt; button in the footer is just this, and works without any scripting. &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;button&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; command&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;show-modal&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; commandfor&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;rss-dialog&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;RSS&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;button&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;dialog&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; id&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;rss-dialog&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; closedby&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;any&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;h2&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Feeds for my blog&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;h2&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;ul&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;/feed.xml&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;English posts&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;/all.xml&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;All posts&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;/czech.xml&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Czech posts&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;li&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;ul&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;dialog&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;h2&gt;Back to top button is easy&lt;/h2&gt; &lt;p&gt;(Title of this section is weird because &lt;a href=https://f.cz/@stepan/117260065421488632&gt;reasons&lt;/a&gt;) &lt;p&gt;Now, this is pretty simple. The JavaScript way of doing this is &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;button&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; onclick&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;document&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;documentElement&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;scrollTop&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt;0&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Back to top&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;button&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Without JS, you can use a link that points to any element on the page using its &lt;em&gt;id&lt;/em&gt;. &lt;p&gt;Every page on my website has a &lt;code&gt;&amp;lt;main id=&quot;main-content&quot;&gt;&lt;/code&gt; element, so I can do this: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;#main-content&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Back to top&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;And the only disadvantage is that the url now has &lt;code&gt;#main-content&lt;/code&gt; at the end. &lt;p&gt;That&#39;s a fair trade off, and I can combine those two methods so it happens only for visitors with JavaScript disabled: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; id&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;scroll-to-top&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;#main-content&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Back to top&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;script&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  document&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;getElementById&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;scroll-to-top&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;)&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;addEventListener&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;(&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;click&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; e&lt;/span&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt; =&gt;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    e&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;preventDefault&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;()&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    document&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;body&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;scrollTop&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; =&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 0&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    document&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;documentElement&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;scrollTop&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; =&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 0&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;  }&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;script&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;(The &lt;code&gt;document.body&lt;/code&gt; line does nothing in my browser, but I&#39;ve seen it somewhere and added it just in case.) &lt;h2&gt;Syntax highlighting&lt;/h2&gt; &lt;p&gt;Syntax highlighting means taking code blocks like you see in this article and making them colorful based on the code. That&#39;s no easy task, but we have libraries for that. &lt;p&gt;I&#39;m including it here because of the number of website that do this &lt;strong&gt;in your browser&lt;/strong&gt;, with JavaScript, every time you load the website. &lt;p&gt;On my site, it happens once at build time, on my computer - just as god intended. &lt;p&gt;I use &lt;a href=https://shiki.style/packages/markdown-it&gt;Shiki&#39;s markdown-it integration&lt;/a&gt;, and it highlights using the same engine VSCode uses. There&#39;s an official highlight plugin for eleventy that uses &lt;a href=https://prismjs.com/&gt;PrismJS&lt;/a&gt;, but it supports less languages and highlights poorly. &lt;h2&gt;The rest&lt;/h2&gt; &lt;p&gt;Besides from what I already described, I&#39;ve hidden a few buttons using the &lt;code&gt;_hide-on-nojs&lt;/code&gt; utility class here and there, and added some red alerts wrapped in &lt;code&gt;&amp;lt;noscript&gt;&lt;/code&gt; on a few pages that &lt;em&gt;really&lt;/em&gt; cannot work without JavaScript. &lt;p&gt;One thing that remains is the comment form. It&#39;s a simple html &lt;code&gt;&amp;lt;form&gt;&lt;/code&gt;, so it &lt;strong&gt;could&lt;/strong&gt; work without JS, but there&#39;s currently some additional logic in use which couldn&#39;t. &lt;p&gt;I&#39;ll probably have to setup my own little server to receive the comments. But for now, there&#39;s just warning that sending comments doesn&#39;t work. &lt;p&gt;Viewing comments works fine however, as they are a static part of the website rendered at build. You can read more about it in the &lt;a href=https://stepanzak.cc/colophon.html#comments&gt;Colophon&lt;/a&gt;. &lt;h2&gt;Test your website&lt;/h2&gt; &lt;p&gt;That&#39;s all I&#39;ve got... &lt;p&gt;If you want to test how &lt;strong&gt;your&lt;/strong&gt; website works without JavaScript, it&#39;s pretty straightforward. &lt;p&gt;There are many ways to disable scripts, but the easiest one is using &lt;a href=https://github.com/gorhill/uBlock&gt;uBlock Origin&lt;/a&gt; (if you don&#39;t use it, you should!) &lt;p&gt;Just click on the uBlock extension and then on the rightmost icon, as shown in the following image: &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=0GmJLs command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/kuyu9daab2p6grkoqttn?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; height=400 alt=&#39;uBlock extension menu with the &quot;disable javascript&quot; button highlighted&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Now just reload the site and see if it works :) &lt;hr&gt; &lt;p&gt;Thanks for reading. Any comment will be greatly appreciated ❤️ </content>
  </entry>
  <entry>
    <title>ZSH startup command</title>
    <link href="https://stepanzak.cc/blog/zsh-startup-command/" />
    <updated>2026-07-22T22:00:00Z</updated>
    <id>https://stepanzak.cc/blog/zsh-startup-command/</id>
    <content type="html">&lt;p&gt;This is a quick tutorial on how to launch ZSH with a command already running, and drop to shell once it exits. &lt;p&gt;It can be any command, but I&#39;m gonna use &lt;code&gt;yazi&lt;/code&gt; - a terminal file manager - as an example. &lt;p&gt;The classic way would be &lt;code&gt;zsh -c &quot;yazi&quot;&lt;/code&gt;. This works, but the problem is that when you quit yazi, ZSH terminates. I want to drop to ZSH after I quit. &lt;p&gt;Another issue is that the command cannot be an alias. I have an &lt;code&gt;yy&lt;/code&gt; alias for yazi. When I run &lt;code&gt;yy&lt;/code&gt;, navigate to some directory, and then quit, ZSH changes directory to that one. This can&#39;t be done without an alias. &lt;p&gt;More promising method is this one: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;zsh&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; -i&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; --nozle&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt; &amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;yazi; setopt zle&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;It should drop to shell, and you could even use the &lt;code&gt;yy&lt;/code&gt; alias. &lt;p&gt;This solution doesn&#39;t work for me though, giving me &lt;code&gt;stty&lt;/code&gt; errors. After some debugging, I figured out it&#39;s caused by my prompt - OhMyPosh. &lt;p&gt;I would like a solution independent on whatever is in my &lt;code&gt;.zshrc&lt;/code&gt; - be it prompt or whatever else. &lt;h2&gt;Solution&lt;/h2&gt; &lt;p&gt;To the final solution then... &lt;p&gt;Add this to the end of your &lt;code&gt;.zshrc&lt;/code&gt;: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;unset&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; ZSH_RUN_TMP&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;export&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; ZSH_RUN_TMP&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;$ZSH_RUN&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;unset&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; ZSH_RUN&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#af3a03,#fe8019);--shiki-light:#af3a03;--shiki-dark:#fe8019&gt;eval&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;$ZSH_RUN_TMP&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;You can then launch ZSH with your new &lt;code&gt;ZSH_RUN&lt;/code&gt; env: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;ZSH_RUN&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;yy&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; zsh&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;It works great. &lt;code&gt;yy&lt;/code&gt; is an alias, and changing directory as described above works as well. &lt;p&gt;The second &lt;code&gt;ZSH_RUN_TMP&lt;/code&gt; variable fuckery is there so new shells launched from this one don&#39;t inherit your &lt;code&gt;ZSH_RUN&lt;/code&gt;. Otherwise if you ran &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;ZSH_RUN&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;nvim&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; zsh&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;and then opened a new terminal from &lt;strong&gt;inside&lt;/strong&gt; neovim, it would open a nested neovim session. Yikes. &lt;h2&gt;Real use case&lt;/h2&gt; &lt;p&gt;I use &lt;code&gt;foot&lt;/code&gt; as my terminal emulator. Foot can launch any shell or command like this: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;foot&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; bash&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;# or&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;foot&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; zsh&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:#928374;--shiki-light:#928374;--shiki-light-font-style:italic;--shiki-dark:#928374;--shiki-dark-font-style:italic&gt;# or&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt;foot&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; yazi&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Well, now I have a keybind to execute this command: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;ZSH_RUN&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;yy&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; foot&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; zsh&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;It opens foot with yazi running, but I can exit yazi in any directory and drop to ZSH in it. &lt;h2&gt;Source&lt;/h2&gt; &lt;p&gt;&lt;a href=https://superuser.com/questions/91881/invoke-zsh-having-it-run-a-command-and-then-enter-interactive-mode-instead-of&gt;https://superuser.com/questions/91881/invoke-zsh-having-it-run-a-command-and-then-enter-interactive-mode-instead-of&lt;/a&gt; &lt;p&gt;Namely &lt;a href=https://superuser.com/a/790681&gt;this comment&lt;/a&gt;, but improved. </content>
  </entry>
  <entry>
    <title>How I build a website for Frank</title>
    <link href="https://stepanzak.cc/blog/frantuv-web/" />
    <updated>2026-06-21T22:00:00Z</updated>
    <id>https://stepanzak.cc/blog/frantuv-web/</id>
    <content type="html">&lt;p&gt;My friend &lt;a href=https://instagram.com/franklys.t&gt;Frank&lt;/a&gt; is a digital artist. He uses Blender to create renders and animations, and they are pretty fucking cool. &lt;p&gt;When I saw one of his instagram posts, I wanted to see all of the stuff he created so far. I clicked on his profile, just to find out the only place I can see it all besides instagram is &lt;strong&gt;Pinterest&lt;/strong&gt;. &lt;span class=_shaking-text&gt;The horror!&lt;/span&gt; &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=gAPbAW command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/wzbxxujoy7u2q2ebjjnv?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; width=150 alt=&quot;Phone screenshot of Pinterest forcing me to log in to view content&quot; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;And I thought websites were invented to be viewed. Smh my head 🙄 &lt;p&gt;Well, this is why I, the great friend I am, decided to make him a &lt;strong&gt;real&lt;/strong&gt; website. And hoping he won&#39;t refuse this unsolicited gift of mine, I started building. &lt;div class=callout data-callout=note&gt; &lt;div class=callout-title&gt; &lt;div class=callout-title-icon&gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;24&quot; height=&quot;24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; stroke-width=&quot;2&quot; class=&quot;lucide lucide-pencil&quot; viewBox=&quot;0 0 24 24&quot;&gt;&lt;path d=&quot;M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5ZM15 5l4 4&quot;/&gt;&lt;/svg&gt; &lt;/div&gt; &lt;div class=callout-title-inner&gt;Note&lt;/div&gt; &lt;/div&gt; &lt;div class=callout-content&gt;&lt;p&gt;Technical details follow. &lt;a href=https://stepanzak.cc/blog/frantuv-web/#final-result&gt;Skip to the final result&lt;/a&gt; if you don&#39;t care. &lt;/div&gt;&lt;/div&gt;&lt;h2&gt;How I did it&lt;/h2&gt; &lt;p&gt;I used the &lt;a href=https://www.11ty.dev/&gt;Eleventy&lt;/a&gt; static site generator, as that&#39;s also what &lt;a href=https://stepanzak.cc/colophon&gt;powers this website&lt;/a&gt;. &lt;p&gt;If you have no idea what a static site generator is, you should probably skip this part. &lt;h3&gt;The landing page&lt;/h3&gt; &lt;p&gt;I didn&#39;t want anything special. Just a nice view of all the artworks. Basically Pinterest without all the Pinterest bullshit. &lt;p&gt;First, I needed to add Frank&#39;s art. I could do it in many ways, but I wanted it to be relatively easy so he can do it himself when he creates something new. Luckily, Frank is friends with computers. He even uses EndeavourOS Linux (Arch, btw). &lt;p&gt;I decided to use &lt;a href=https://cloudinary.com/&gt;Cloudinary&lt;/a&gt; CDN to host the images and videos. &lt;p&gt;I created a new file &lt;code&gt;content/_data/art-pieces.json&lt;/code&gt;. It looks like this: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;[&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;  {&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;title&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;Terry the Terrier&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;date&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;2025-11-07&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;desc&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;Render of my animatronic Terry. My gf picked this name&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:#cc241d;--shiki-light:#cc241d;--shiki-dark:#cc241d&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;type&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;image&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;alt&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;Animatronic Render&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;cloudinaryId&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;animatronic6_u2yxwe&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;width&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 736&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;    &quot;&lt;/span&gt;&lt;span style=color:#689d6a;--shiki-light:#689d6a;--shiki-dark:#689d6a&gt;height&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 1308&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;  },&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;  {&lt;/span&gt;&lt;span style=color:#cc241d;--shiki-light:#cc241d;--shiki-dark:#cc241d&gt;...&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Adding a new art goes like this: &lt;ul&gt; &lt;li&gt;Upload it to Cloudinary &lt;li&gt;Copy it&#39;s ID from cloudinary &lt;li&gt;Create a new object in the json file &lt;li&gt;Set cloudinaryId to the ID &lt;li&gt;Set title, date, desc, type (image|video) and alt text &lt;li&gt;Run &lt;code&gt;add-dimensions.js&lt;/code&gt; script to automatically add width and height. &lt;/ul&gt; &lt;p&gt;Data from any json file inside the &lt;code&gt;_data/&lt;/code&gt; directory is accesible in all templates thanks to Eleventy. &lt;p&gt;I used the &lt;a href=https://masonry.desandro.com/&gt;Masonry Layout library&lt;/a&gt; to implement a similar column layout as Pinterest does. The Masonry layout is &lt;a href=https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Grid_layout/Masonry_layout&gt;coming to CSS natively&lt;/a&gt;, but is not yet supported by any major browser. &lt;p&gt;Adding all the images from the json file was pretty trivial afterwards: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;image-grid&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  {%&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; for&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; in&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; art-pieces&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;grid-piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;      &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;img&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; src&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{%&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt; cloudinaryImg&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;cloudinaryId&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; alt&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{{piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;alt}}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; width&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;230&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;/&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;      &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;p&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;grid-piece__title&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;title&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; }}&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;p&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  {%&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; endfor&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;(OK the real code is actually much more complex but this is how it works.) &lt;p&gt;As you can see, our json data are accesible in the &lt;code&gt;art-pieces&lt;/code&gt; object. &lt;code&gt;cloudinaryImg&lt;/code&gt; is an ELeventy shortcode that takes the Cloudinary ID and returns an URL to the file. &lt;p&gt;What immediately bugged me was the layout changes. My internet speed is quite bad, and every time one of the images finally loaded, the whole layout shifted. &lt;p&gt;To solve that, the browser needs to know the dimensions of the images and videos when the library assembles them into the masonry layout - that is right after the page is loaded. Easiest way to do so is just to add &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;height&lt;/code&gt; keys inside &lt;code&gt;art-pieces.json&lt;/code&gt;. Doing it manually would be really annoying though, so I wrote a small (78 lines) script that fetches the resources from Cloudinary and adds the dimensions automatically. &lt;p&gt;I then added some more things like video duration and autoplay on mouse hover. &lt;p&gt;Every art piece got wrapped in &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;/art/&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;title&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; | slug &lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;}}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;which creates a valid url from it&#39;s title. &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=wYqLci command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/q9i0g0neehihuaznqwpp?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&quot;Pinterest-like grid of various pictures and videos with titles&quot; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Next step was creating a page for each art piece. &lt;h3&gt;Individual art pages&lt;/h3&gt; &lt;p&gt;Eleventy has this awesome feature called &lt;a href=https://www.11ty.dev/docs/pagination/&gt;Pagination&lt;/a&gt;. That was the hardest part to wrap my head around, but I eventually did. &lt;p&gt;I&#39;ll show you how it works. &lt;p&gt;Frontmatter in &lt;code&gt;art-piece.liqid&lt;/code&gt;: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;pagination&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;  data&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;art-pieces&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;  size&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#8f3f71,#d3869b);--shiki-light:#8f3f71;--shiki-dark:#d3869b&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;  alias&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-dark:#8ec07c&gt;permalink&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;:&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt; &quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;/art/{{ piece.title | slug }}/&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This iterates over &lt;code&gt;art-pieces&lt;/code&gt;, and for each key it applies this template. You can see that the value of &lt;code&gt;permalink&lt;/code&gt; key is actually also a template. Due to that, the pagination creates a different page for each key. And the permalink is created the same way as the links on the main page are. &lt;p&gt;Inside this paginated template, I can then use the &lt;code&gt;piece&lt;/code&gt; object that refers to the current art piece form &lt;code&gt;art-pieces.json&lt;/code&gt; &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;art-section&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;  &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;img&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; src&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{%&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt; cloudinaryImg&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;cloudinaryId&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; alt&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{{piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;alt}}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; class&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt;info-section&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;h1&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;title&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; }}&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;h1&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;b&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;date&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; }}&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;b&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;p&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; piece&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;desc&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; }}&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;p&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;div&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;div class=callout data-callout=note&gt; &lt;div class=callout-title&gt; &lt;div class=callout-title-icon&gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;24&quot; height=&quot;24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; stroke-width=&quot;2&quot; class=&quot;lucide lucide-pencil&quot; viewBox=&quot;0 0 24 24&quot;&gt;&lt;path d=&quot;M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5ZM15 5l4 4&quot;/&gt;&lt;/svg&gt; &lt;/div&gt; &lt;div class=callout-title-inner&gt;Note&lt;/div&gt; &lt;/div&gt; &lt;div class=callout-content&gt;&lt;p&gt;This is, again, heavily simplified to be easier to understand. For example, there&#39;s no handling of videos in this example. &lt;/div&gt;&lt;/div&gt;&lt;p&gt;Another nice thing about Eleventy pagination is that you get &lt;em&gt;previous&lt;/em&gt; and &lt;em&gt;next&lt;/em&gt; links for free: &lt;pre class=&quot;shiki shiki-themes gruvbox-light-hard gruvbox-dark-hard&quot; style=--shiki-light-bg:#f9f5d7;--shiki-dark-bg:#1d2021;color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2;background-color:light-dark(#f9f5d7,#1d2021) tabindex=0&gt;&lt;code&gt;&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{%&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; if&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; pagination&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;previous&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; pagination&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;previous&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; | url &lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;}}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Previous&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{%&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; endif&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{%&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; if&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; pagination&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;next&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;    &amp;lt;&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#b57614,#fabd2f);--shiki-light:#b57614;--shiki-dark:#fabd2f&gt; href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;=&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{{&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; pagination&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;href&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;.&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;next&lt;/span&gt;&lt;span style=color:light-dark(#79740e,#b8bb26);--shiki-light:#79740e;--shiki-dark:#b8bb26&gt; | url &lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;}}&lt;/span&gt;&lt;span style=color:light-dark(#7c6f64,#a89984);--shiki-light:#7c6f64;--shiki-dark:#a89984&gt;&quot;&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;span style=color:light-dark(#3c3836,#ebdbb2);--shiki-light:#3c3836;--shiki-dark:#ebdbb2&gt;Next&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&amp;lt;/&lt;/span&gt;&lt;span style=color:light-dark(#427b58,#8ec07c);--shiki-light:#427b58;--shiki-light-font-weight:bold;--shiki-dark:#8ec07c;--shiki-dark-font-weight:bold&gt;a&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt;{%&lt;/span&gt;&lt;span style=color:light-dark(#9d0006,#fb4934);--shiki-light:#9d0006;--shiki-dark:#fb4934&gt; endif&lt;/span&gt;&lt;span style=color:light-dark(#076678,#83a598);--shiki-light:#076678;--shiki-dark:#83a598&gt; %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=line&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;Art piece pages ended up looking like this: &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=_6aPDZ command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/n6gidxf64f5osidt8avr?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; width=250 alt=&quot;Video with title, date, description and Previous/Next buttons&quot; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Since it&#39;s a static website, comments have to be added using some third-party service. I decided to leave that on Frank. &lt;p&gt;I polished the website, added styles, meta tags, 404 page, and other uninteresting stuff. &lt;h3&gt;Deployment&lt;/h3&gt; &lt;p&gt;While I hate GitHub and use it only when really necessary, I still decided to go with it. &lt;p&gt;Firstly, it&#39;s super easy to enable static site hosting on any repo, which then gets it&#39;s own &lt;code&gt;.github.io&lt;/code&gt; domain. GitHub actions can build the Eleventy website on each commit. &lt;p&gt;Secondly, Frank can edit the json file directly from the web interface, and he&#39;s already familiar with GitHub. &lt;p&gt;He doesn&#39;t have to care about the underlying technology at all. He uploads his art to Cloudinary, adds it into the json file from his browser without ever touching git, and the website magically updates. &lt;p&gt;If you want to look at the source code, the whole repo is &lt;a href=https://github.com/franklyst/frankweb&gt;here&lt;/a&gt;. Leave a star while you&#39;re at it ;) &lt;h2&gt;Final result&lt;/h2&gt; &lt;p&gt;👉👉👉&lt;strong&gt;Visit the website &lt;a href=https://franklyst.github.io/frankweb/&gt;HERE&lt;/a&gt;!&lt;/strong&gt; 👈👈👈 &lt;p&gt;Or, if you are &lt;em&gt;really&lt;/em&gt; lazy, here&#39;s an embedded iframe:&lt;/p&gt; &lt;iframe src=https://franklyst.github.io/frankweb/ width=100% height=1000 style=zoom:.6 loading=lazy&gt; &lt;/iframe&gt;</content>
  </entry>
  <entry>
    <title>Controlling a phone camera with a remote</title>
    <link href="https://stepanzak.cc/blog/phone-camera-remote-control/" />
    <updated>2026-02-13T23:00:00Z</updated>
    <id>https://stepanzak.cc/blog/phone-camera-remote-control/</id>
    <content type="html">&lt;p&gt;My grandpa asked me to help with a seemingly simple thing recently: he wanted to put his phone somewhere and then start/stop video recording with a remote he bought. The remote has two buttons: volume up and volume down. &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=TKgzQV command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/pca2xb2grhwi3rqeuqxt?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; width=150 alt=&quot;Small remote control with two buttons&quot; loading=lazy&gt;&lt;/button&gt; &lt;h2&gt;The Problem&lt;/h2&gt; &lt;p&gt;He has a Samsung phone, and Samsung&#39;s camera app, like most others, can be controlled with volume buttons. &lt;p&gt;The issue is, they both do the same thing. You can start recording with either button, and the same goes for stopping recording. He doesn&#39;t want to always keep the state of the phone in his head. If he forgot, he could think he is starting recording while he would, in fact, stop it. &lt;p&gt;The solution is theoretically simple - make one of the buttons only start and the other only stop the recording. How do I do that, though? &lt;h2&gt;The Solution&lt;/h2&gt; &lt;p&gt;The solution was an app called &lt;a href=https://github.com/keymapperorg/KeyMapper&gt;KeyMapper&lt;/a&gt;, available on the Play Store and F-Droid. As the name suggests, it remaps keys. What surprised me was that it can tell the difference between the volume buttons on the phone and on the remote. Another great feature is remapping only for a specified app, Samsung Camera in this case. &lt;p&gt;But what do you remap the buttons to to only start or stop recording? Well, here comes the best ability of KeyMapper - you can record yourself clicking on any button on your screen, and it will remember which button it was. &quot;Start Recording&quot;, in my case. Then, you just bind the remote&#39;s key to click on this very button. If there&#39;s no &quot;Start Recording&quot; button, as the camera is currently recording, nothing happens. Exactly what my grandpa wanted. &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=-lpPOy command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/ch5jqbvvopsqoczreetr?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; width=250 alt=&quot;KeyMapper screenshot. Group named Camera Remote. Trigger: Volume up (Any device) Actions: Tap: Start video. Trigger: Volume down (Any device): Actions: Tap: Stop video&quot; loading=lazy&gt;&lt;/button&gt; &lt;h2&gt;One Last Improvement&lt;/h2&gt; &lt;p&gt;Remote controlling works like a charm, but there&#39;s an issue. The screen goes off when it&#39;s not recording after a while. And if you set the screen timeout to a really long time (although I&#39;m not sure what the maximum allowed is), the screen is going to drain the battery. &lt;p&gt;If you are on Samsung, like my grandpa is, there&#39;s an app from Samsung for you. It&#39;s called Battery Guardian, from the &lt;em&gt;Good Guardians&lt;/em&gt; suite, and it has a little side feature that we&#39;re going to use: &lt;blockquote&gt; &lt;p&gt;Screen Curtain is a new feature that allows you to maintain application running status while the screen is turned off. Use Screen Curtain to minimize battery consumption and heat generation. &lt;/blockquote&gt; &lt;p&gt;Install Battery Guardian from the &lt;a href=&quot;http://apps.samsung.com/appquery/appDetail.as?appId=com.samsung.android.statsd&quot;&gt;Galaxy Store&lt;/a&gt;, or sideload from &lt;a href=https://www.apkmirror.com/apk/samsung-electronics-co-ltd/battery-guardian/&gt;APKMirror&lt;/a&gt; if you are in unsupported country. Enable Screen Curtain. It&#39;s just a few clicks, but &lt;a href=https://us.community.samsung.com/t5/Tips/One-UI-6-New-Feature-Screen-Curtain/td-p/2673709&gt;here&#39;s a guide&lt;/a&gt;. When you start it from the quick panel button, your screen will go almost dark. Any app running will continue to run underneath, and the remote control will continue to work with our remaps. It also disables the screen timeout. &lt;p&gt;If you don&#39;t have a Samsung phone, you&#39;ll have to find an alternative. Just be carefull what you install, since it will for sure require the accessibility permission, which is a dangerous one. &lt;p&gt;Thanks for reading, I hope I helped you :) </content>
  </entry>
  <entry>
    <title>Leaving rooted Android</title>
    <link href="https://stepanzak.cc/blog/leaving-rooted-android/" />
    <updated>2025-11-23T23:00:00Z</updated>
    <id>https://stepanzak.cc/blog/leaving-rooted-android/</id>
    <content type="html">&lt;p&gt;I&#39;ve got a new phone - a Pixel 7 Pro that someone broke, my grandpa bought cheaply and repaired. First thing I did was to install &lt;a href=https://grapheneos.org/&gt;GrapheneOS&lt;/a&gt;. The biggest change about that switch is that GrapheneOS doesn&#39;t provide root access, and &lt;a href=https://www.reddit.com/r/GrapheneOS/comments/13264di/comment/ji54e19/&gt;apparently for a good reason&lt;/a&gt;. In this blog post, I&#39;ll list every single tool I use that uses root privileges, to see what am I going to lose by switching to a non-rooted system. &lt;h2&gt;KernelSU modules&lt;/h2&gt; &lt;p&gt;There are two main ways of utilizing root access: Modules and Superuser apps. &lt;p&gt;Superuser apps are regular android apps that you grant root access. Some of them require root access for a few features but work without it. Like a file manager that can browse restricted parts of the filesystem if granted root access. &lt;p&gt;Root modules, on the other hand, are scripts specific to the root method you use - &lt;a href=https://github.com/KernelSU-Next/KernelSU-Next&gt;KernelSU Next&lt;/a&gt; in my case (but most people know &lt;a href=https://github.com/topjohnwu/Magisk&gt;Magisk&lt;/a&gt;). They usually do some deeper system changes, and aren&#39;t expected to have an UI (but some of them do). Here are the modules I have installed at the time of preparing to switch to the new phone: &lt;ul&gt; &lt;li&gt;JamesDSP Manager &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/james34602/JamesDSPManager&gt;https://github.com/james34602/JamesDSPManager&lt;/a&gt; &lt;li&gt;Advanced audio processing engine &lt;li&gt;I used it as an equalizer. &lt;li&gt;Overkill running in background. &lt;li&gt;I don&#39;t have great headphones and lossless music streaming, didn&#39;t notice a difference really. &lt;li&gt;It broke and I didn&#39;t bother fixing it. &lt;li&gt;there&#39;s a &lt;a href=https://github.com/ThePBone/RootlessJamesDSP&gt;rootless version&lt;/a&gt; with some limitations that are not dealbreakers for me &lt;/ul&gt; &lt;li&gt;ReZygisk &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/PerformanC/ReZygisk&gt;https://github.com/PerformanC/ReZygisk&lt;/a&gt; &lt;li&gt;Required mainly for LSPosed to work (see &lt;a href=https://stepanzak.cc/blog/leaving-rooted-android/#lsposed-modules&gt;LSPosed modules&lt;/a&gt;) &lt;/ul&gt; &lt;li&gt;RVX YT Music, Youtube RVX LITE &lt;ul&gt; &lt;li&gt;RVX stands for &lt;a href=https://github.com/inotia00/revanced-patches&gt;ReVanced Extended&lt;/a&gt;, which is a modified version of the &lt;a href=https://revanced.app/&gt;ReVanced&lt;/a&gt; patches. &lt;li&gt;These allow you to patch various applications (YouTube and YouTube Music for me) to remove ads, unlock premium features and add various enhancements. &lt;li&gt;I use root modules distributed through Telegram channel not affiliated with ReVanced or Revanced Extended 💀 &lt;li&gt;I use these just for the convenience, I can just compile ReVanced (Extended) APKs. &lt;/ul&gt; &lt;li&gt;WiFi Password Viewer for MMRL &lt;ul&gt; &lt;li&gt;&lt;a href=https://mmrl.dev/repository/grdoglgmr/mmrl_wpd&gt;https://mmrl.dev/repository/grdoglgmr/mmrl_wpd&lt;/a&gt; &lt;li&gt;Cool but I never actually used it. &lt;/ul&gt; &lt;li&gt;Zygisk - LSPosed &lt;ul&gt; &lt;li&gt;See &lt;a href=https://stepanzak.cc/blog/leaving-rooted-android/#lsposed-modules&gt;LSPosed modules&lt;/a&gt; &lt;/ul&gt; &lt;li&gt;Tricky Store OSS, PlayIntegrityFix-NEXT &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/EricInacio01/PlayIntegrityFix-NEXT&gt;https://github.com/EricInacio01/PlayIntegrityFix-NEXT&lt;/a&gt; &lt;li&gt;&lt;a href=https://github.com/beakthoven/TrickyStoreOSS/releases&gt;https://github.com/beakthoven/TrickyStoreOSS/releases&lt;/a&gt; &lt;li&gt;For Play Integrity, doesn&#39;t even work half the time. &lt;/ul&gt; &lt;li&gt;AshLooper - Boot Loop protection &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/RipperHybrid/AshLooper&gt;https://github.com/RipperHybrid/AshLooper&lt;/a&gt; &lt;li&gt;Disables root modules on bootloop - I won&#39;t need it when I won&#39;t have any root modules. &lt;/ul&gt; &lt;li&gt;Lightweight Exynos Undervolter (LEU) &lt;ul&gt; &lt;li&gt;It&#39;s supposed to improve battery life by &lt;a href=https://en.wikipedia.org/wiki/Dynamic_voltage_scaling#Undervolting&gt;undervolting&lt;/a&gt; the CPU. &lt;li&gt;Only works on Samsung (Exynos chip). &lt;li&gt;Didn&#39;t notice any difference using it. &lt;/ul&gt; &lt;li&gt;Zygisk - Sui &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/RikkaApps/Sui&gt;https://github.com/RikkaApps/Sui&lt;/a&gt; &lt;li&gt;Like Shizuku but for giving root access &lt;li&gt;Unmaintained, stopped displaying the list of apps 💀 (so I can&#39;t check or revoke their privileges) &lt;/ul&gt; &lt;/ul&gt; &lt;p&gt;Wow! It looks like I could do just fine without those modules. The only issue could be LSPosed, so let&#39;s see what do I use that for. &lt;h2&gt;LSPosed modules&lt;/h2&gt; &lt;p&gt;&lt;a href=https://github.com/JingMatrix/LSPosed&gt;LSPosed&lt;/a&gt; (JingMatrix&#39;s fork) is a modern reimplementation of the Xposed framework. &lt;em&gt;Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs.&lt;/em&gt; &lt;p&gt;For example: the ReVanced apps are traditionally modified by applying patches and compiling new patched APKs. LSPosed module could apply those same patches to regular apps installed from the Play Store, while not modyfiing them permanently. It can also hook multiple apps, for general patches like blocking screenshot detection. &lt;ul&gt; &lt;li&gt;Free Notifications &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/binarynoise/XposedModulets&gt;https://github.com/binarynoise/XposedModulets&lt;/a&gt; &lt;li&gt;Being able to disable some annoying persistent system notifications is great in theory. &lt;li&gt;I remember using it only once, so not a big deal. &lt;/ul&gt; &lt;li&gt;Hide My Applist &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/Dr-TSNG/Hide-My-Applist&gt;https://github.com/Dr-TSNG/Hide-My-Applist&lt;/a&gt; &lt;li&gt;Never needed it for any app, actually broke my banking app. &lt;li&gt;Another app that went closed-source. &lt;/ul&gt; &lt;li&gt;NoStorageRestrict &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/Xposed-Modules-Repo/com.github.dan.nostoragerestrict&gt;https://github.com/Xposed-Modules-Repo/com.github.dan.nostoragerestrict&lt;/a&gt; &lt;li&gt;Another nice freedom to have, but I&#39;ve never used it. &lt;li&gt;The restrictions might be there for a reason actually. &lt;/ul&gt; &lt;li&gt;AlternativeUnlockXposed &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/leohearts/AlternativeUnlockXposed&gt;https://github.com/leohearts/AlternativeUnlockXposed&lt;/a&gt; &lt;li&gt;Playing rickroll when &lt;em&gt;12345678&lt;/em&gt; password is entered is funny for like a week. &lt;li&gt;I disabled it soon (LSPosed modules of course eat some battery). &lt;li&gt;GrapheneOS has &lt;a href=https://grapheneos.org/features#duress&gt;it&#39;s own feature&lt;/a&gt; for duress password that wipes the device instead of unlocking it. &lt;/ul&gt; &lt;li&gt;CaptureSposed &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/99keshav99/CaptureSposed&gt;https://github.com/99keshav99/CaptureSposed&lt;/a&gt; &lt;li&gt;This might be the most useful module from the list, but I personally never needed it &lt;/ul&gt; &lt;li&gt;XPL-EX &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/0bbedCode/XPL-EX&gt;https://github.com/0bbedCode/XPL-EX&lt;/a&gt; &lt;li&gt;Never bothered to learn how to use it. &lt;/ul&gt; &lt;li&gt;InstaEclipse &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/ReSo7200/InstaEclipse&gt;https://github.com/ReSo7200/InstaEclipse&lt;/a&gt; &lt;ul&gt; &lt;li&gt;Patches Instagram to remove ADs, disable reels, and add some privacy enhancements. &lt;/ul&gt; &lt;li&gt;I need this. &lt;li&gt;I hope I&#39;ll be able to make regular APKs with &lt;a href=https://github.com/JingMatrix/LSPatch&gt;LSPatch&lt;/a&gt; (JingMatrix&#39;s fork). &lt;strong&gt;EDIT:&lt;/strong&gt; Wile it&#39;s &lt;a href=https://github.com/ReSo7200/InstaEclipse/issues/100&gt;not possible&lt;/a&gt; to patch standalone Instagram APK with InstaEclipse embedded, it works with non-root LSPatch manager. &lt;/ul&gt; &lt;li&gt;Re:Telegram &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/Sakion-Team/Re-Telegram&gt;https://github.com/Sakion-Team/Re-Telegram&lt;/a&gt; &lt;li&gt;Useful, but I don&#39;t use Telegram that much. &lt;/ul&gt; &lt;li&gt;Lucky Patcher &lt;ul&gt; &lt;li&gt;see Lucky Patcher in &lt;a href=https://stepanzak.cc/blog/leaving-rooted-android/#apps-with-superuser-rights&gt;Apps with Superuser rights&lt;/a&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;h2&gt;Apps with Superuser rights&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Shizuku &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/RikkaApps/Shizuku&gt;https://github.com/RikkaApps/Shizuku&lt;/a&gt; &lt;li&gt;Allows you to share &lt;a href=https://en.wikipedia.org/wiki/Android_Debug_Bridge&gt;ADB&lt;/a&gt; access with apps. &lt;li&gt;ADB allows you to do some restricted stuff on Android, not as much as root though. &lt;li&gt;Can be used without root, setting it up is annoying every time you need to use it. &lt;li&gt;OK for something like &lt;em&gt;SD Maid SE&lt;/em&gt;, not for long running apps in the background, or things you need to do fast at the moment. &lt;/ul&gt; &lt;li&gt;Android USB Script, USB HID Client &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/Netdex/android-usb-script&gt;https://github.com/Netdex/android-usb-script&lt;/a&gt; &lt;li&gt;&lt;a href=https://github.com/Arian04/android-hid-client&gt;https://github.com/Arian04/android-hid-client&lt;/a&gt; &lt;li&gt;Neither works on the kernel I used. &lt;li&gt;Mostly a gimmick, not really that useful. &lt;/ul&gt; &lt;li&gt;App Manager &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/MuntashirAkon/AppManager&gt;https://github.com/MuntashirAkon/AppManager&lt;/a&gt; &lt;li&gt;So many features &lt;ul&gt; &lt;li&gt;&lt;strong&gt;displays running apps&lt;/strong&gt; &lt;li&gt;app backup (with data) &lt;li&gt;app usage &lt;li&gt;also has a debloater &lt;/ul&gt; &lt;li&gt;Very impressive app! &lt;li&gt;10x better than the app manager in system settings. &lt;li&gt;I will miss this app :( &lt;li&gt;Some features will work without root, but probably not the most useful ones. &lt;/ul&gt; &lt;li&gt;FindMyDevice &lt;ul&gt; &lt;li&gt;&lt;a href=https://gitlab.com/fmd-foss/fmd-android&gt;https://gitlab.com/fmd-foss/fmd-android&lt;/a&gt; &lt;li&gt;Most of the functionality should be grantable without root. &lt;/ul&gt; &lt;li&gt;Material Files &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/zhanghai/MaterialFiles&gt;https://github.com/zhanghai/MaterialFiles&lt;/a&gt; &lt;li&gt;My favorite file manager, even without root. &lt;li&gt;With root, it can access all files on device (like files in app storage) &lt;li&gt;Sometimes very useful: &lt;ul&gt; &lt;li&gt;&lt;a href=https://f.cz/@stepan/114145042723916307&gt;https://f.cz/@stepan/114145042723916307&lt;/a&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;li&gt;SD Maid SE &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/d4rken-org/sdmaid-se&gt;https://github.com/d4rken-org/sdmaid-se&lt;/a&gt; &lt;li&gt;I use it only once in a while. &lt;li&gt;Most advanced features can be enabled with Shizuku, no problem since I don&#39;t need to run it often. &lt;/ul&gt; &lt;li&gt;Tasker &lt;ul&gt; &lt;li&gt;&lt;a href=https://tasker.joaoapps.com/&gt;https://tasker.joaoapps.com/&lt;/a&gt; &lt;li&gt;Some features won&#39;t work (quite a lot) &lt;li&gt;It&#39;s a paid app. I bought it two years ago, and created like 2 tasks. &lt;li&gt;One of those apps that feel extremely useful, but you don&#39;t really use them that much. &lt;li&gt;One less app to run in the background. &lt;/ul&gt; &lt;li&gt;Termux &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/termux/termux-app&gt;https://github.com/termux/termux-app&lt;/a&gt; &lt;li&gt;Theoretically can do &lt;a href=https://ivonblog.com/en-us/posts/termux-chroot-ubuntu/&gt;full linux distro chroot&lt;/a&gt; with root. &lt;ul&gt; &lt;li&gt;Full linux distro doesn&#39;t really bring much advantage over normal termux - In which I have tmux, neovim, python, node, even Zola SSG so I can live preview my website changes. &lt;li&gt;Running full linux distro is harsh on system resources, eats up disk space, and drains battery. Total overkill. &lt;/ul&gt; &lt;/ul&gt; &lt;li&gt;Lucky Patcher &lt;ul&gt; &lt;li&gt;&lt;code&gt;https://luckypatchers.com/&lt;/code&gt; &lt;li&gt;Russian closed source app to patch apps and games, mainly to unlock paid content and get free coins/gems/whatever. &lt;li&gt;Security concerns &lt;li&gt;Unstable &lt;li&gt;I&#39;m richer, so I don&#39;t need to crack apps that often. &lt;ul&gt; &lt;li&gt;I mean I&#39;m not rich, but I can pay $4 for a good app. &lt;li&gt;Many apps can&#39;t be cracked anymore, LuckyPatcher&#39;s best years are over anyway. &lt;/ul&gt; &lt;/ul&gt; &lt;li&gt;Classic Power Menu &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/KieronQuinn/ClassicPowerMenu&gt;https://github.com/KieronQuinn/ClassicPowerMenu&lt;/a&gt; &lt;li&gt;Cool but I don&#39;t really use it. &lt;li&gt;Takes a bit too long to run the first time after reboot, which is most of the time I open the power menu. &lt;/ul&gt; &lt;li&gt;MMRL, WebUI X &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/DerGoogler/MMRL&gt;https://github.com/DerGoogler/MMRL&lt;/a&gt; &lt;li&gt;&lt;a href=https://mmrl.dev/guide/webuix/&gt;https://mmrl.dev/guide/webuix/&lt;/a&gt; &lt;li&gt;Only useful with root. &lt;/ul&gt; &lt;/ul&gt; &lt;h2&gt;Shizuku (Sui) enabled apps&lt;/h2&gt; &lt;p&gt;Shizuku grants ADB, whether Sui grants root acces. In reality, most apps that use Sui can also use Shizuku, usually for the exact same features. &lt;h3&gt;Will work with Shizuku&lt;/h3&gt; &lt;p&gt;(They need it for one-time setup, or something I do once in a while) &lt;ul&gt; &lt;li&gt;Lemmy Redirect, Mastodon Redirect, PeerTube Redirect &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/zacharee/MastodonRedirect&gt;https://github.com/zacharee/MastodonRedirect&lt;/a&gt; &lt;li&gt;One-time setup &lt;/ul&gt; &lt;li&gt;Install with Options &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/zacharee/InstallWithOptions&gt;https://github.com/zacharee/InstallWithOptions&lt;/a&gt; &lt;li&gt;I use it only once in a while. &lt;/ul&gt; &lt;li&gt;Canta &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/samolego/Canta&gt;https://github.com/samolego/Canta&lt;/a&gt; &lt;li&gt;Debloating is not needed on GrapheneOS. &lt;/ul&gt; &lt;li&gt;aShell You &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/DP-Hridayan/aShellYou&gt;https://github.com/DP-Hridayan/aShellYou&lt;/a&gt; &lt;li&gt;I don&#39;t need to run adb commands often. &lt;li&gt;It&#39;s usually used for granting some unusual permission. (WRITE_SECURE_SETTINGS) &lt;/ul&gt; &lt;li&gt;SaverTuner &lt;ul&gt; &lt;li&gt;&lt;a href=https://codeberg.org/s1m/savertuner&gt;https://codeberg.org/s1m/savertuner&lt;/a&gt; &lt;li&gt;Needs the WRITE_SECURE_SETTINGS permission. &lt;li&gt;One-time setup. &lt;li&gt;The Pixel 7 Pro has a pretty good battery life with GrapheneOS, so it&#39;s default power saving mode will probably be enough. &lt;/ul&gt; &lt;/ul&gt; &lt;h3&gt;Used Shizuku for installing apps without user confirmation&lt;/h3&gt; &lt;p&gt;On newer android versions, you only have to confirm once for each app (store), and that gives the store permanent permission to update that app. Thus there&#39;s no need for root for installing. &lt;ul&gt; &lt;li&gt;Bunny Manager &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/bunny-mod/BunnyManager&gt;https://github.com/bunny-mod/BunnyManager&lt;/a&gt; &lt;li&gt;Also unmaintained. &lt;/ul&gt; &lt;li&gt;Aurora Store &lt;ul&gt; &lt;li&gt;&lt;a href=https://gitlab.com/AuroraOSS/AuroraStore&gt;https://gitlab.com/AuroraOSS/AuroraStore&lt;/a&gt; &lt;/ul&gt; &lt;li&gt;Droid-ify &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/Droid-ify/client&gt;https://github.com/Droid-ify/client&lt;/a&gt; &lt;/ul&gt; &lt;li&gt;Obtainium &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/ImranR98/Obtainium&gt;https://github.com/ImranR98/Obtainium&lt;/a&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;h3&gt;Didn&#39;t &lt;strong&gt;actually&lt;/strong&gt; use them&lt;/h3&gt; &lt;p&gt;These are interesting, because when I first rooted my phone, I was really excited about them. Before that, I&#39;ve always stumbled upon them in some F-Droid repo, and thought how great it would be if I had root and could use them. Well, turns out they aren&#39;t so useful as they seem, and I stopped using most of these apps shortly after I installed them. &lt;ul&gt; &lt;li&gt;SystemUI Tuner &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/zacharee/Tweaker&gt;https://github.com/zacharee/Tweaker&lt;/a&gt; &lt;/ul&gt; &lt;li&gt;LogFox &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/F0x1d/LogFox&gt;https://github.com/F0x1d/LogFox&lt;/a&gt; &lt;/ul&gt; &lt;li&gt;Geto &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/JackEblan/Geto&gt;https://github.com/JackEblan/Geto&lt;/a&gt; &lt;/ul&gt; &lt;li&gt;Extinguish &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/Moderpach/Extinguish&gt;https://github.com/Moderpach/Extinguish&lt;/a&gt; &lt;/ul&gt; &lt;li&gt;Blocker &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/lihenggui/blocker&gt;https://github.com/lihenggui/blocker&lt;/a&gt; &lt;li&gt;I was not careful and managed to break QR code payment in my banking app for a few months with the help of this app. &lt;/ul&gt; &lt;li&gt;Smartspacer &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/KieronQuinn/Smartspacer&gt;https://github.com/KieronQuinn/Smartspacer&lt;/a&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;h3&gt;Will miss&lt;/h3&gt; &lt;ul&gt; &lt;li&gt;Hail &lt;ul&gt; &lt;li&gt;&lt;a href=https://github.com/aistra0528/Hail&gt;https://github.com/aistra0528/Hail&lt;/a&gt; &lt;li&gt;Freezes apps. &lt;li&gt;I use it to freeze proprietary apps that I unfortunately need every so often. I don&#39;t want them to have any chance to run unless I specifically start them - that&#39;s why I freeze them with Hail. &lt;ul&gt; &lt;li&gt;Google Maps &lt;li&gt;Google Home (for Chromecast) &lt;li&gt;Google (for Lens) &lt;li&gt;Spotify (for &lt;a href=https://support.spotify.com/us/article/jam/&gt;Jam&lt;/a&gt;) &lt;/ul&gt; &lt;li&gt;&lt;em&gt;Before you lecture me on how I shouldn&#39;t use these apps at all&lt;/em&gt;: Especially in the case of Maps and Lens, there are emergency situations where getting somewhere quickly (a hospital, a pharmacy), or identifying some object quickly (unknown pills that your child swallowed) is infinitely more important than privacy. With Hail, it&#39;s like if the apps were uninstalled when they are frozen, but I can still launch them immediately. &lt;li&gt;I freeze and unfreeze often, so starting Shizuku every time is not an option. &lt;li&gt;&lt;strong&gt;alternatives:&lt;/strong&gt; &lt;ul&gt; &lt;li&gt;Hail could be used with Device Admin / &lt;a href=https://github.com/iamr0s/Dhizuku&gt;Dhizuku&lt;/a&gt;, but with some &lt;a href=https://github.com/GrapheneOS/os-issue-tracker/issues/5710#issuecomment-3250128973&gt;annoying side effects&lt;/a&gt;. &lt;li&gt;&lt;a href=https://codeberg.org/raiiware/ForceStopHelper&gt;Force Stop Helper&lt;/a&gt; is an app list that allows pinning apps to the top, indicates if an app is disabled, and when you click on the app, it takes you to it&#39;s system settings. You can open Force Stop Helper, and disable/enable any app with two clicks. &lt;li&gt;Based on GrapheneOS&#39;s response in &lt;a href=https://discuss.grapheneos.org/d/1173-taskmanager-real-killing-of-processes&gt;this thread&lt;/a&gt;, I understand that freezing apps might be completely unnecessary, and I can just forbid them running in the background. &lt;/ul&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;h2&gt;Conclusion&lt;/h2&gt; &lt;p&gt;As I&#39;m finishing this blog post, I&#39;ve been using the new Pixel 7 Pro with GrapheneOS for more than two months. I don&#39;t really miss the features I lost with giving up root access, which was very counterintuitive for me, given the amount of them that I used. What&#39;s maybe more surprising is that I miss some non-root features much more - features that I didn&#39;t even know were Samsung-specific. Given enough caffeine, I&#39;ll try to write a blog post about that. Some day... &lt;p&gt;Thank you for reading! I don&#39;t have a comment system on my website yet, but &lt;a href=https://f.cz/@stepan/115605548632900402&gt;here&#39;s a link to a Mastodon post where you can comment&lt;/a&gt;. Feel free to comment any corrections, recommendations, or just thoughts that crossed your mind while reading this. &lt;p&gt;I also &lt;a href=&quot;https://lemmy.cafe/post/27405118?scrollToComments=true&quot;&gt;posted a link on Lemmy&lt;/a&gt;, and there are some very interesting comments and discussion. </content>
  </entry>
  <entry>
    <title>Bots I&#39;ve met on the Fediverse</title>
    <link href="https://stepanzak.cc/blog/fediverse-bots/" />
    <updated>2025-02-26T23:00:00Z</updated>
    <id>https://stepanzak.cc/blog/fediverse-bots/</id>
    <content type="html">&lt;p&gt;Wandering around in &lt;a href=https://jointhefediverse.net/&gt;the Fediverse&lt;/a&gt;, every once in a while I run into a bot. It might be weird or ordinary, boring or exciting, interesting or completely absurd. Here, I want to share those I&#39;m always excited to see again, and thus think they are worth sharing. &lt;h2&gt;I Hope This Email Finds You&lt;/h2&gt; &lt;p&gt;First bot on this list is also my favorite. I&#39;ll let it introduce itself: &lt;blockquote&gt; &lt;p&gt;Posts (...) completions to the sentence &quot;I hope this email finds you.&quot; All content is sourced from Google Books, based on searches for phrases that start with &quot;finds you.&quot; &lt;/blockquote&gt; &lt;p&gt;Pretty simple, right? &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=B78O8G command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/pd6cutnj6hv483aynmjt?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;A screenshot of post by &quot;I Hope This Email Finds You&quot; (@thisemailfindsyou@mastodon.social) with the text &quot;I hope this email finds you unprepared while cross-country skiing.&quot;&#39; loading=lazy&gt;&lt;/button&gt; Every time I&#39;m writing an e-mail, I have the urge to use one of this bot&#39;s creations. &lt;p&gt;I find it incredible how amusing a bot posting literal nonsense can be, especially in an AI age where an LLM can spit out hundreds of sentences like this in a few seconds. That wouldn&#39;t be so funny though, would it? &lt;details&gt; &lt;summary&gt;Click to show Mastodon feed&lt;/summary&gt; &lt;p&gt;Most recent posts of &lt;a href=https://mastodon.social/@thisemailfindsyou&gt;@thisemailfindsyou@mastodon.social&lt;/a&gt;: &lt;div class=&quot;mastodon-feed me__1&quot;&gt; &lt;style&gt;.me__1{max-width:35rem;margin:auto;overflow:auto}&lt;/style&gt; &lt;script&gt;window.addEventListener(&quot;load&quot;,()=&gt;{new MastodonTimeline.Init({mtContainerId:&quot;mt-container-HhMNWy9SCY&quot;,instanceUrl:&quot;https://mastodon.social&quot;,timelineType:&quot;profile&quot;,userId:&quot;112343635227295007&quot;,profileName:&quot;thisemailfindsyou&quot;,hideReplies:!0,hideUnlisted:!0,hideReblog:!0})})&lt;/script&gt; &lt;div id=mt-container-HhMNWy9SCY class=mt-container&gt; &lt;div class=mt-body role=feed&gt; &lt;div class=mt-loading-spinner&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/details&gt; &lt;h2&gt;How to do anything&lt;/h2&gt; &lt;p&gt;This bot is similar to the previous one in its dadaist nature. It mixes up random &lt;a href=https://www.wikihow.com/&gt;wikiHow&lt;/a&gt; article headings and illustrations. &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=sh2tmf command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/jlhsyyf5k7n5l78tgme5?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;A screenshot of post by &quot;how to do anything&quot; (@wikihow@mastodon.social) with the text &quot;How to Choose the Right Man to Marry&quot; and an image of a bird feeder. There&amp;#39;s a mark saying that it&amp;#39;s 1.5m (5 ft) above the ground.&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Whether you try to find sense it its cryptic advice, or just go for a laugh, I&#39;m sure it will be glad to see someone listening to what it has to say. &lt;details&gt; &lt;summary&gt;Click to show Mastodon feed&lt;/summary&gt; &lt;p&gt;Most recent posts of &lt;a href=https://mastodon.social/@wikihow&gt;@wikihow@mastodon.social&lt;/a&gt;: &lt;div class=&quot;mastodon-feed me__2&quot;&gt; &lt;style&gt;.me__2{max-width:35rem;margin:auto;overflow:auto}&lt;/style&gt; &lt;script&gt;window.addEventListener(&quot;load&quot;,()=&gt;{new MastodonTimeline.Init({mtContainerId:&quot;mt-container-CPLJgY5nHW&quot;,instanceUrl:&quot;https://mastodon.social&quot;,timelineType:&quot;profile&quot;,userId:&quot;417391&quot;,profileName:&quot;wikihow&quot;,hideReplies:!0,hideUnlisted:!0,hideReblog:!0})})&lt;/script&gt; &lt;div id=mt-container-CPLJgY5nHW class=mt-container&gt; &lt;div class=mt-body role=feed&gt; &lt;div class=mt-loading-spinner&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/details&gt; &lt;h2&gt;As the Film Ends&lt;/h2&gt; &lt;p&gt;Have you ever opened a random book from your grandma&#39;s bookshelf and read the last page, or last sentence of it? There&#39;s something exciting about it, even when you have no idea about the context. Maybe because of it. &lt;p&gt;If you did, you and this bot are gonna love each other! &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=SlNOlc command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/djib54wgcunnz1px6tls?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;A screenshot of post by &quot;As the Film Ends&quot; (@endingsummary@mastodon.social) with the text &quot;El Mariachi then gives his share of the cash to his home village before walking into the sunset.&quot;&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Its father &lt;a href=http://vectorpoem.com/bots/#plotbot&gt;explains&lt;/a&gt; its inner workings well: &lt;blockquote&gt; &lt;p&gt;Most Wikipedia pages for a given film provide at least a brief plot synopsis. Using the sum total of all film pages on Wikipedia as a corpus, this bot picks a random film and posts the final sentence from its plot summary. Spoilers are definitely possible, but given the depth of the corpus it&#39;ll usually be a film you&#39;ve never heard of. &lt;/blockquote&gt; &lt;details&gt; &lt;summary&gt;Click to show Mastodon feed&lt;/summary&gt; &lt;p&gt;Most recent posts of &lt;a href=https://mastodon.social/@endingsummary&gt;@endingsummary@mastodon.social&lt;/a&gt;: &lt;div class=&quot;mastodon-feed me__3&quot;&gt; &lt;style&gt;.me__3{max-width:35rem;margin:auto;overflow:auto}&lt;/style&gt; &lt;script&gt;window.addEventListener(&quot;load&quot;,()=&gt;{new MastodonTimeline.Init({mtContainerId:&quot;mt-container-GKthlKkZ4K&quot;,instanceUrl:&quot;https://mastodon.social&quot;,timelineType:&quot;profile&quot;,userId:&quot;403977&quot;,profileName:&quot;endingsummary&quot;,hideReplies:!0,hideUnlisted:!0,hideReblog:!0})})&lt;/script&gt; &lt;div id=mt-container-GKthlKkZ4K class=mt-container&gt; &lt;div class=mt-body role=feed&gt; &lt;div class=mt-loading-spinner&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/details&gt; &lt;h2&gt;transect575&lt;/h2&gt; &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=dYsAcf command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,q_90/tk75b0qkajxo2mr04jsn?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;A screenshot of post by transect575 with a three line haiku &quot;missing lower half (newline) may be humpback whale , breaching (newline) update conditions&quot;&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;&lt;a href=https://bots.converged.yt/@transect575&gt;transect575&lt;/a&gt; is another bot whose introduction I&#39;ll &lt;a href=https://converged.yt/bots/#transect575&gt;leave to its creator&lt;/a&gt;: &lt;blockquote&gt; &lt;p&gt;When I worked for REDACTED GOVERNMENT AGENCY I saw a lot of aerial survey data from people looking for whales in the sea. Usually this includes useful information like the number of animals, whether they are juvenile or adult and weather conditions. They also usually included a comment field. So I scraped that out and this bot makes haikus from it. &lt;/blockquote&gt; &lt;p&gt;Its home is a &lt;a href=https://gotosocial.org/&gt;GoToSocial&lt;/a&gt; instance, so I can&#39;t embed its posts here as easily as those of bots living on Mastodon. &lt;p&gt;&lt;a href=https://bots.converged.yt/@transect575&gt;Click here&lt;/a&gt; to view transect575&#39;s haikus &lt;h2&gt;You Can&#39;t Spell&lt;/h2&gt; &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=Tdz8kv command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/jqn61dborgk1p3xn7jg6?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;A screenshot of post by &quot;You Can&amp;#39;t Spell&quot; (@cantspell@mastodon.social) with the text &quot;You can&amp;#39;t spell artificial intelligence without lie certificating&quot;&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;This bot is only six days old when I&#39;m writing this, but it already managed to say smarter things than lot of adults I know have ever said. Did you know that you can&#39;t spell &lt;em&gt;warm-hearted&lt;/em&gt; without &lt;em&gt;meth award&lt;/em&gt;? &lt;details&gt; &lt;summary&gt;Click to show Mastodon feed&lt;/summary&gt; &lt;p&gt;Most recent posts of &lt;a href=https://mastodon.social/@cantspell&gt;@cantspell@mastodon.social&lt;/a&gt;: &lt;div class=&quot;mastodon-feed me__4&quot;&gt; &lt;style&gt;.me__4{max-width:35rem;margin:auto;overflow:auto}&lt;/style&gt; &lt;script&gt;window.addEventListener(&quot;load&quot;,()=&gt;{new MastodonTimeline.Init({mtContainerId:&quot;mt-container-fz0lXfP0Ho&quot;,instanceUrl:&quot;https://mastodon.social&quot;,timelineType:&quot;profile&quot;,userId:&quot;114039513726375451&quot;,profileName:&quot;cantspell&quot;,hideReplies:!0,hideUnlisted:!0,hideReblog:!0})})&lt;/script&gt; &lt;div id=mt-container-fz0lXfP0Ho class=mt-container&gt; &lt;div class=mt-body role=feed&gt; &lt;div class=mt-loading-spinner&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/details&gt; &lt;h2&gt;Shakespearean Insult Bot&lt;/h2&gt; &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=jyraHV command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/rkkvh7z3acsyivcqg6m8?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;A screenshot of post by &quot;Shakespearean Insult Bot&quot; (@shakespearean_Insults@beige.party) with the text &quot;You degenerate, fat-kidneyed, onion-eyed, scut!&quot;&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Nothing much to say about the &lt;em&gt;Shakespearean Insult Bot&lt;/em&gt;, who walks around the Fediverse and insults whoever crosses its path. Its unloved (those not starred/boosted/commented) insults are deleted after two weeks, which is a pretty clever feature that the &lt;em&gt;How to do anything&lt;/em&gt; bot could borrow. &lt;details&gt; &lt;summary&gt;Click to show Mastodon feed&lt;/summary&gt; &lt;p&gt;Most recent posts of &lt;a href=https://beige.party/@shakespearean_Insults&gt;@shakespearean_Insults@beige.party&lt;/a&gt;: &lt;div class=&quot;mastodon-feed me__5&quot;&gt; &lt;style&gt;.me__5{max-width:35rem;margin:auto;overflow:auto}&lt;/style&gt; &lt;script&gt;window.addEventListener(&quot;load&quot;,()=&gt;{new MastodonTimeline.Init({mtContainerId:&quot;mt-container-QG_bwSh_mQ&quot;,instanceUrl:&quot;https://beige.party&quot;,timelineType:&quot;profile&quot;,userId:&quot;113725385831519563&quot;,profileName:&quot;shakespearean_Insults&quot;,hideReplies:!0,hideUnlisted:!0,hideReblog:!0})})&lt;/script&gt; &lt;div id=mt-container-QG_bwSh_mQ class=mt-container&gt; &lt;div class=mt-body role=feed&gt; &lt;div class=mt-loading-spinner&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/details&gt; &lt;h2&gt;SimCity2000 Traffic Helicopter&lt;/h2&gt; &lt;p&gt;&lt;button class=&quot;_btn-unstyled lightbox__wrapperbtn&quot; commandfor=dAJ-JU command=show-modal title=&quot;click to enlarge&quot;&gt;&lt;img src=&quot;https://res.cloudinary.com/dt4tzhayc/image/upload/f_webp,h_0.5,q_90,w_0.5/xbo1bnqoi8whncjzcqgf?_a=BAMAROQC0&quot; class=&quot;image-haslightbox undefined&quot; alt=&#39;A screenshot of post by &quot;SimCity2000 Traffic Helicopter&quot; (@sc2000@mastodon.social) with an image of a Sim City 2000 city and the text &quot;1.5 MIL! June 24, 3963&quot;&#39; loading=lazy&gt;&lt;/button&gt; &lt;p&gt;Last bot on this list is a bit different than the rest. It&#39;s not funny nor nonsensical, but deserves its place more than any other. &lt;p&gt;Another project of &lt;a href=https://mastodon.social/@jplebreton&gt;@jplebreton@mastodon.social&lt;/a&gt;, creator of the &lt;em&gt;As the Film Ends&lt;/em&gt; bot, &lt;em&gt;SimCity2000 Traffic Helicopter&lt;/em&gt; &lt;a href=http://vectorpoem.com/bots/#sc2000bot&gt;flies above user-created cities and posts a random glimpse of a cityscape.&lt;/a&gt; &lt;p&gt;Beautiful! &lt;details&gt; &lt;summary&gt;Click to show Mastodon feed&lt;/summary&gt; &lt;p&gt;Most recent posts of &lt;a href=https://mastodon.social/@sc2000&gt;@sc2000@mastodon.social&lt;/a&gt;: &lt;div class=&quot;mastodon-feed me__6&quot;&gt; &lt;style&gt;.me__6{max-width:35rem;margin:auto;overflow:auto}&lt;/style&gt; &lt;script&gt;window.addEventListener(&quot;load&quot;,()=&gt;{new MastodonTimeline.Init({mtContainerId:&quot;mt-container-0bazIFUgmE&quot;,instanceUrl:&quot;https://mastodon.social&quot;,timelineType:&quot;profile&quot;,userId:&quot;113429291225946141&quot;,profileName:&quot;sc2000&quot;,hideReplies:!0,hideUnlisted:!0,hideReblog:!0})})&lt;/script&gt; &lt;div id=mt-container-0bazIFUgmE class=mt-container&gt; &lt;div class=mt-body role=feed&gt; &lt;div class=mt-loading-spinner&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/details&gt; </content>
  </entry>
</feed>