<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>slvdr510.dev - zola</title>
    <subtitle>Personal blog about Linux and development.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://slvdr510.dev/tags/zola/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://slvdr510.dev"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-10-07T00:00:00+00:00</updated>
    <id>https://slvdr510.dev/tags/zola/atom.xml</id>
    <entry xml:lang="en">
        <title>Creation of this blog</title>
        <published>2026-10-07T00:00:00+00:00</published>
        <updated>2026-10-07T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://slvdr510.dev/blog/0002-zola-init/"/>
        <id>https://slvdr510.dev/blog/0002-zola-init/</id>
        
        <content type="html" xml:base="https://slvdr510.dev/blog/0002-zola-init/">&lt;h1 id=&quot;a-basic-guide-to-zola-0-23-6&quot;&gt;A Basic Guide to Zola 0.23.6&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Zola&lt;/strong&gt; is a very fast static site generator (SSG) written in Rust. It runs as a single binary from the terminal.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;1-installation-and-verification&quot;&gt;1. Installation and Verification&lt;/h2&gt;
&lt;p&gt;To install Zola on Arch Linux from the official repositories:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; pacman&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;S&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; zola&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Check the installed version. If it isn’t 0.23.6, some steps in this tutorial may not work as written:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;-version&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;2-basic-workflow&quot;&gt;2. Basic Workflow&lt;/h2&gt;
&lt;h3 id=&quot;step-1-create-a-new-project&quot;&gt;Step 1: Create a new project&lt;/h3&gt;
&lt;p&gt;From the folder where you want to keep the project (in my case &lt;code&gt;~/dev&lt;/code&gt; ), run:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; init&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; my-site&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zola will ask you three initial questions. You can change all of them later in &lt;code&gt;zola.toml&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;What is the URL of your site? (https://example.com):&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The URL where the site will be published, for example &lt;code&gt;https://slvdr510.dev&lt;/code&gt;. It’s stored as &lt;code&gt;base_url&lt;/code&gt; and used to generate absolute links (&lt;code&gt;permalink&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;If you just press Enter, the answer isn’t left empty: Zola uses the default shown in brackets and writes &lt;code&gt;base_url = &quot;https://example.com&quot;&lt;/code&gt;. That’s fine while you develop locally, but change it before publishing. Don’t set it to an empty string either (&lt;code&gt;base_url = &quot;&quot;&lt;/code&gt;): &lt;code&gt;zola build&lt;/code&gt; refuses to run and shows &lt;code&gt;A base URL is required in config.toml with key base_url&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Do you want to enable Sass compilation? [Y/n]:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This lets you put your .scss or .sass files in the sass/ folder and Zola will compile them automatically. The default is Y.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Do you want to build a search index of the content? [y/N]:&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The main reason this is off by default (N) is to keep the site fast and small, especially for small or simple sites.&lt;/p&gt;
&lt;p&gt;Here’s why you might &lt;strong&gt;not&lt;/strong&gt; want it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;It makes the site heavier: for search to work on a static site, Zola generates a huge .json file with all of your site’s text. Your visitors’ browsers would have to download the whole file before they could search.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It’s unnecessary on small sites: if your site is a simple portfolio, a landing page or a blog with 5 posts, visitors don’t need search; the navigation menu is enough.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Browser memory usage: processing that search index in the browser uses RAM and CPU on the visitor’s device.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;External search engines: many sites prefer to integrate more powerful external search engines (such as embedded DuckDuckGo, Algolia or Pagefind) instead of Zola’s built-in index.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When SHOULD you enable it?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you’re building technical documentation, a wiki or a large blog with dozens or hundreds of posts, where instant search is essential for readers.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Zola then creates the following folder structure:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;my-site/&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;├── zola.toml         # Main site configuration&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;├── content/          # Markdown files (.md)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;├── sass/             # SCSS/SASS files for styles&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;├── static/           # Static files (images, fonts, JS)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;├── templates/        # HTML templates (Tera)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;└── themes/           # Installed themes (optional)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; in older versions of Zola this file was called &lt;code&gt;config.toml&lt;/code&gt;. Many guides and themes still call it that; it’s the same file.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Syntax highlighting for code blocks is already enabled: &lt;code&gt;zola.toml&lt;/code&gt; has a &lt;code&gt;[markdown.highlighting]&lt;/code&gt; section with the &lt;code&gt;catppuccin-mocha&lt;/code&gt; theme, which you can swap for another one.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;step-2-live-development-server&quot;&gt;Step 2: Live development server&lt;/h3&gt;
&lt;p&gt;Go into your project folder and start the local server:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;cd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; my-site&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; serve&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Local URL:&lt;/strong&gt; &lt;code&gt;http://127.0.0.1:1111&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;It includes &lt;strong&gt;live reloading&lt;/strong&gt;: any change shows up in the browser automatically.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;step-3-add-content&quot;&gt;Step 3: Add content&lt;/h3&gt;
&lt;p&gt;Inside the &lt;code&gt;content&lt;/code&gt; folder, create a new folder called &lt;code&gt;blog&lt;/code&gt; and, inside it, an &lt;code&gt;_index.md&lt;/code&gt; file with the following content:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;title&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Blog&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;sort_by&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;template&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;section.html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;template&lt;/code&gt; sets which template renders the &lt;code&gt;/blog/&lt;/code&gt; page. &lt;code&gt;section.html&lt;/code&gt; is the one Zola uses for sections by default, so that line is optional. Don’t put &lt;code&gt;index.html&lt;/code&gt; here, because that template is for the home page (&lt;code&gt;/&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Then, in &lt;code&gt;content/blog/&lt;/code&gt;, create a file called, for example, &lt;code&gt;my-first-post.md&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;title = &amp;quot;My first post&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;date = 2026-10-07&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt; Hello from Arch Linux!&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;This is my first post generated with &lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);font-weight: bold;&quot;&gt;**&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);font-weight: bold;&quot;&gt;Zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);font-weight: bold;&quot;&gt;**&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now let’s create the templates in the &lt;code&gt;templates&lt;/code&gt; folder. Zola uses a different template for each kind of page:&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Template&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Renders&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Main variable&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;index.html&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;The home page (&lt;code&gt;/&lt;/code&gt;)&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;section&lt;/code&gt; (the root section)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;section.html&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Each section, such as &lt;code&gt;/blog/&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;section&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;page.html&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Each post, such as &lt;code&gt;/blog/my-first-post/&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;page&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;If one is missing, Zola doesn’t fail; it shows a “Welcome to Zola!” page instead.&lt;/p&gt;
&lt;p&gt;Let’s start with &lt;code&gt;index.html&lt;/code&gt;, the home page:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;DOCTYPE&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; html&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; lang&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;en&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;head&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;meta&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; charset&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;UTF-8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;title&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;slvdr510.dev&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;title&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;head&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;body&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;Welcome to my site&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;p&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;Latest posts from my blog:&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;p&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    &amp;lt;!--&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Zola looks up the blog section and lists its pages &lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;--&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {% set blog_section = get_section(path=&amp;quot;blog/_index.md&amp;quot;) %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;ul&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {% for page in blog_section.pages %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ page.permalink }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ page.title }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;span&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;({{ page.date }})&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;span&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {% endfor %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;ul&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;body&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;html&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Since the home page isn’t the &lt;code&gt;blog&lt;/code&gt; section, we use &lt;code&gt;get_section&lt;/code&gt; to load it and loop over its posts.&lt;/p&gt;
&lt;p&gt;Next, create &lt;code&gt;page.html&lt;/code&gt;, the template for each post:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;DOCTYPE&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; html&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; lang&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;en&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;head&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;meta&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; charset&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;UTF-8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;title&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ page.title }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;title&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;head&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;body&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;← Back to home&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;hr&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ page.title }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;p&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;em&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;Published on {{ page.date }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;em&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;p&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {{ page.content | safe }}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;body&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;html&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And finally &lt;code&gt;section.html&lt;/code&gt;, which renders &lt;code&gt;/blog/&lt;/code&gt; with the list of posts in the section:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;DOCTYPE&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; html&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; lang&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;en&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;head&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;meta&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; charset&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;UTF-8&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;title&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ section.title }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;title&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;head&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;body&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;← Home&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ section.title }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;ul&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {% for page in section.pages %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ page.permalink }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ page.title }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {% endfor %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;ul&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;body&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;html&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 id=&quot;watch-out-showing-tera-code-inside-a-post&quot;&gt;Watch out: showing Tera code inside a post&lt;/h4&gt;
&lt;p&gt;Zola processes the content of &lt;code&gt;.md&lt;/code&gt; files as a Tera template, including what’s inside code blocks. If a post shows code with &lt;code&gt;{{ }}&lt;/code&gt; or &lt;code&gt;{% %}&lt;/code&gt; (like this one), Zola will try to run it and fail with errors such as &lt;code&gt;Section &#39;blog/_index.md&#39; not found&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To show it as-is, wrap the code block in &lt;code&gt;{% raw %}&lt;/code&gt; and &lt;code&gt;{% endraw %}&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{% raw %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #96E072);&quot;&gt;```&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;html&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ page.title }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #96E072);&quot;&gt;```&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{% endraw %}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;step-4-build-for-production&quot;&gt;Step 4: Build for production&lt;/h3&gt;
&lt;p&gt;To generate the final site, ready to upload to a host (Cloudflare Pages, GitHub Pages, Netlify, Vercel, etc.):&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; build&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This creates the &lt;code&gt;public/&lt;/code&gt; folder with all the HTML, CSS and static assets.&lt;/p&gt;
&lt;h3 id=&quot;step-5-make-links-work-on-any-domain&quot;&gt;Step 5: Make links work on any domain&lt;/h3&gt;
&lt;p&gt;Zola writes every internal link as an absolute URL built from &lt;code&gt;base_url&lt;/code&gt;: a link to the blog becomes &lt;code&gt;https://slvdr510.dev/blog/&lt;/code&gt;, not &lt;code&gt;/blog/&lt;/code&gt;. That’s fine on the real domain, but if the same build is served from anywhere else (a host’s preview address like &lt;code&gt;my-site.pages.dev&lt;/code&gt;, or a local server), every click and every stylesheet points back to &lt;code&gt;base_url&lt;/code&gt;. Before the domain is set up, that means unstyled pages and broken links.&lt;/p&gt;
&lt;p&gt;Zola has no option for relative links, and &lt;code&gt;base_url&lt;/code&gt; can’t be left empty (see step 1). So this site fixes it after the build, with a small script that rewrites internal links in the generated HTML to root-relative paths. Create &lt;code&gt;scripts/relative_links.sh&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;/bin/sh&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Turns the internal links of the generated HTML (href, src, srcset) from absolute&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; (https://slvdr510.dev/blog/...) into root-relative (/blog/...), so the site&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; works on any domain: slvdr510.dev, *.pages.dev or localhost.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The canonical URL, og: tags, feed and sitemap keep using base_url.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Usage, from the project root and after `zola build`:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;   sh scripts/relative_links.sh&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;eu&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;sed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;n&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;s/^base_url *= *&amp;quot;\(.*\)&amp;quot;/\1/p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; zola.toml&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;=&lt;/span&gt;&lt;span&gt;$&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;/&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;if&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -z&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; ]&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; then&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;    echo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;base_url not found in zola.toml&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; &amp;gt;&amp;amp;2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;    exit&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;fi&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Escape the dots to use the URL inside a regular expression&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base_re&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;=&lt;/span&gt;&lt;span&gt;$(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;printf&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;%s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt; sed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;s/\./\\./g&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;find&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; public&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;*.html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;exec&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; sed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;E&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;    -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;e&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/rel=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;canonical&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/! s#(href|src|srcset)=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base_re&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;1=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#g&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;    -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;e&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/rel=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;canonical&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/! s#(href|src|srcset)=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base_re&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;1=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;\&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/#g&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;    {}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; +&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It reads &lt;code&gt;base_url&lt;/code&gt; from &lt;code&gt;zola.toml&lt;/code&gt;, so nothing is hard-coded. Then it replaces it in every &lt;code&gt;href&lt;/code&gt;, &lt;code&gt;src&lt;/code&gt; and &lt;code&gt;srcset&lt;/code&gt; attribute of every page in &lt;code&gt;public/&lt;/code&gt;. The second expression covers links like &lt;code&gt;https://slvdr510.dev/blog/&lt;/code&gt;. The first covers links to the bare domain (&lt;code&gt;https://slvdr510.dev&lt;/code&gt;, used by the home button), which would otherwise become an empty &lt;code&gt;href=&quot;&quot;&lt;/code&gt; that points to the current page instead of home.&lt;/p&gt;
&lt;p&gt;Some URLs are left absolute on purpose:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;&amp;lt;link rel=&quot;canonical&quot;&amp;gt;&lt;/code&gt; tag (lines containing &lt;code&gt;rel=&quot;canonical&quot;&lt;/code&gt; are skipped). It tells search engines which address is the real one, so a preview copy isn’t indexed as a duplicate.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;og:url&lt;/code&gt; and &lt;code&gt;og:image&lt;/code&gt;. They live in &lt;code&gt;content=&lt;/code&gt; attributes, which the script doesn’t touch. Social networks need full URLs to build link previews.&lt;/li&gt;
&lt;li&gt;The feed (&lt;code&gt;atom.xml&lt;/code&gt;) and &lt;code&gt;sitemap.xml&lt;/code&gt;, which aren’t HTML files.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Run it after every production build:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; build&lt;/span&gt;&lt;span&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt; sh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; scripts/relative_links.sh&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If your host runs the build for you, add &lt;code&gt;&amp;amp;&amp;amp; sh scripts/relative_links.sh&lt;/code&gt; to the end of its build command too (see “Publishing on Cloudflare Pages” at the end). &lt;code&gt;zola serve&lt;/code&gt; doesn’t need it, because it already builds for &lt;code&gt;127.0.0.1&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&quot;step-6-ignore-generated-files-in-git&quot;&gt;Step 6: Ignore generated files in Git&lt;/h3&gt;
&lt;p&gt;If you keep the site in a Git repository, the &lt;code&gt;public/&lt;/code&gt; folder shouldn’t go in it: Zola rebuilds it from scratch on every &lt;code&gt;zola build&lt;/code&gt;, and most hosts run the build themselves. Create a &lt;code&gt;.gitignore&lt;/code&gt; file in the project root:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# Site generated by `zola build` (and the Pagefind index, which also goes here).&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# It&amp;#39;s rebuilt on every build, so it isn&amp;#39;t versioned.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;public/&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# Folder settings created by Dolphin (KDE)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;.directory&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;.directory&lt;/code&gt; line is only needed if you use the Dolphin file manager, which drops that file into folders whose view settings you change. Add whatever your own system or editor creates in the same way.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;3-command-summary&quot;&gt;3. Command Summary&lt;/h2&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Command&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;zola init &amp;lt;name&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Creates a new project with the initial structure.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;zola serve&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Starts the local development server with live reloading.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;zola build&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Builds the site into the &lt;code&gt;public/&lt;/code&gt; folder.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;zola build &amp;amp;&amp;amp; sh scripts/relative_links.sh&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Production build with root-relative links (see step 5).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;zola check&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Checks for broken links and template errors.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;4-installing-a-theme-optional&quot;&gt;4. Installing a Theme (Optional)&lt;/h2&gt;
&lt;p&gt;The templates from step 3 are enough for a working blog. If you’d rather use a ready-made design (styles, dark mode, copy-code button, tags, feed…), you can use a theme. As an example, here’s how to install &lt;a rel=&quot;external&quot; href=&quot;https://www.getzola.org/themes/xuan/&quot;&gt;xuan&lt;/a&gt;, the theme this site uses:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Browse themes on the official site: &lt;a rel=&quot;external&quot; href=&quot;https://www.getzola.org/themes/&quot;&gt;getzola.org/themes&lt;/a&gt;. Make sure the theme is maintained and compatible with your Zola version (xuan requires 0.23.6 or later).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the theme to the &lt;code&gt;themes/&lt;/code&gt; folder as a &lt;strong&gt;git submodule&lt;/strong&gt;, running the command from the project root (the folder with &lt;code&gt;zola.toml&lt;/code&gt;). If the project isn’t a Git repository yet, run &lt;code&gt;git init -b main&lt;/code&gt; first:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;git&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; submodule&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; add&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; https://github.com/jhq223/xuan.git&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; themes/xuan&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A submodule is a pointer from your repository to a specific commit of the theme’s repository, recorded in a &lt;code&gt;.gitmodules&lt;/code&gt; file. It matters as soon as a host builds the site for you: the host clones your repository, and with a submodule it also downloads the theme at that exact commit. A plain &lt;code&gt;git clone&lt;/code&gt; into &lt;code&gt;themes/xuan&lt;/code&gt; works locally, but your repository then has no record of where the theme comes from, and the host’s build fails with an empty &lt;code&gt;themes/xuan&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Two things to avoid:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Running &lt;code&gt;git submodule add&lt;/code&gt; from a subfolder (for example &lt;code&gt;scripts/&lt;/code&gt;). Git resolves &lt;code&gt;themes/xuan&lt;/code&gt; relative to the current folder and creates the submodule in the wrong place.&lt;/li&gt;
&lt;li&gt;Committing inside &lt;code&gt;themes/xuan&lt;/code&gt;. That creates a commit that only exists on your computer, and the host can’t download it. Change the theme’s look from your own &lt;code&gt;templates/&lt;/code&gt; and &lt;code&gt;sass/&lt;/code&gt; instead (see “Customizing part of the theme”).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On another machine, clone with &lt;code&gt;git clone --recurse-submodules ...&lt;/code&gt;, or run &lt;code&gt;git submodule update --init&lt;/code&gt; after a plain clone.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable it in your &lt;code&gt;zola.toml&lt;/code&gt;, along with the title, the language and the theme options you want. All of them are documented in &lt;code&gt;themes/xuan/zola.toml&lt;/code&gt;. This is the configuration this site uses:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;base_url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;https://slvdr510.dev&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;title&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;slvdr510.dev&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;description&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Personal blog about Linux and development.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;default_language&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;en&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;theme&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;xuan&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;compile_sass&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;build_search_index&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; No RSS/Atom feed (see &amp;quot;Top bar options&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;generate_feeds&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;feed_filenames&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;atom.xml&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;taxonomies&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;tags&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; feed&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;generate_robots_txt&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;markdown&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;smart_punctuation&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;bottom_footnotes&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Note/warning boxes with &amp;quot;&amp;gt; [!NOTE]&amp;quot; (see &amp;quot;Notes and warnings in posts&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;github_alerts&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;markdown&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;highlighting&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; One code theme for light mode and one for dark mode, picked from the system setting&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;light_theme&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;github-light-default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;dark_theme&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;andromeeda&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Accent color for the light and dark themes (see &amp;quot;Accent color and post buttons&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;accent_color&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#3e00db&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;accent_color_dark&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#737cff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; No theme copy button: code blocks are copied by clicking them (see &amp;quot;Customizing part of the theme&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_copy_button&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_reading_time&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_backlinks&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Custom CSS, compiled from sass/custom.scss (see &amp;quot;Customizing part of the theme&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;styles&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;custom.css&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Custom JavaScript, from static/ (see &amp;quot;Customizing part of the theme&amp;quot;, &amp;quot;Images in posts&amp;quot;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; &amp;quot;The top bar on mobile&amp;quot; and &amp;quot;Always opening pages at the top&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;scripts&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;copy-code.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;lightbox.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;nav-scroll.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;scroll-top.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Pagefind search: requires running `npx pagefind --site public` after every `zola build`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;search&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;nav&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_feed&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Hides the light/dark theme button (see &amp;quot;Top bar options&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_theme_switcher&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_repo&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;links&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;@/blog/_index.md&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Blog&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;@/archive/_index.md&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Archive&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Social icons in the top bar (icon shortened here, see &amp;quot;Social icons in the top bar&amp;quot;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;socials&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;https://github.com/slvdr510&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;GitHub&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; icon&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;%3Csvg role=&amp;#39;img&amp;#39; viewBox=&amp;#39;0 0 24 24&amp;#39; ...&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;https://www.youtube.com/@slvdr510&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;YouTube&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; icon&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;%3Csvg role=&amp;#39;img&amp;#39; viewBox=&amp;#39;0 0 24 24&amp;#39; ...&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;footer&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; No links above the copyright line&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;links&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Hides the &amp;quot;© site name, year&amp;quot; line&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_copyright&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Hides the &amp;quot;Powered by Zola and Xuan&amp;quot; line&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_powered_by&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_source&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In &lt;code&gt;content/blog/_index.md&lt;/code&gt;, set the theme’s templates for the post list and for each post:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;title&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Blog&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;sort_by&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;template&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;article_list.html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;page_template&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;article.html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;paginate_by&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 10&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Delete (or rename) your &lt;code&gt;index.html&lt;/code&gt;, &lt;code&gt;section.html&lt;/code&gt; and &lt;code&gt;page.html&lt;/code&gt; templates. Templates in &lt;code&gt;templates/&lt;/code&gt; take precedence over the theme’s, so if you keep them you’ll keep seeing your own HTML instead of the theme’s design.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; if you keep xuan’s copy button (&lt;code&gt;show_copy_button = true&lt;/code&gt;), it only appears on code blocks that specify a language, for example &lt;code&gt;```bash&lt;/code&gt; instead of just &lt;code&gt;```&lt;/code&gt;. This site replaces it with its own click-to-copy (see “Customizing part of the theme”).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;home-page-archive-and-tags&quot;&gt;Home page, archive and tags&lt;/h3&gt;
&lt;p&gt;With the theme, the home page shows the content of &lt;code&gt;content/_index.md&lt;/code&gt;, so create that file with whatever you want to appear at &lt;code&gt;/&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;title = &amp;quot;Home&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt;##&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt; Welcome to my site&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Check out the &lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;blog&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);&quot;&gt;]&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);text-decoration: underline;&quot;&gt;@/blog/_index.md&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; for the latest posts.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This site’s home page also shows a grid of cards linking to my projects on GitHub (see “Project cards on the home page”).&lt;/p&gt;
&lt;p&gt;xuan also comes with an archive page listing every post grouped by year. To enable it, create &lt;code&gt;content/archive/_index.md&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;title&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Archive&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;template&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;archive.html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;sort_by&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For tags, the configuration from step 3 already declares the &lt;code&gt;tags&lt;/code&gt; taxonomy (&lt;code&gt;taxonomies = [{ name = &quot;tags&quot;, feed = true }]&lt;/code&gt;). Then assign them to each post in its front matter, under &lt;code&gt;[taxonomies]&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;title&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;My first post&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;date&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; 2026-10-07&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;taxonomies&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;tags&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;arch-linux&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zola generates &lt;code&gt;/tags/&lt;/code&gt; with the list of tags and a page for each one. The archive is already in the menu thanks to the &lt;code&gt;[extra.nav]&lt;/code&gt; links from step 3. Tags aren’t, because each post already shows its tags as clickable badges. If you also want a “Tags” entry in the menu, add it to &lt;code&gt;links&lt;/code&gt; in &lt;code&gt;[extra.nav]&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;{ &lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/tags&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Tags&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt; },&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;top-bar-options&quot;&gt;Top bar options&lt;/h3&gt;
&lt;p&gt;Besides the menu &lt;code&gt;links&lt;/code&gt;, the &lt;code&gt;[extra.nav]&lt;/code&gt; section of &lt;code&gt;zola.toml&lt;/code&gt; controls which buttons appear on the right side of the top bar:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;nav&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Feed button (RSS/Atom)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_feed&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Light/dark theme button&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_theme_switcher&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Button linking to the website&amp;#39;s source code (uses source_url from [extra])&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_repo&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Without the theme button, the site follows the visitor’s system setting (light or dark), which the theme detects automatically.&lt;/p&gt;
&lt;p&gt;The feed button only appears if Zola generates a feed, which is controlled by &lt;code&gt;generate_feeds&lt;/code&gt; at the top of &lt;code&gt;zola.toml&lt;/code&gt;. With it set to &lt;code&gt;false&lt;/code&gt;, Zola doesn’t create &lt;code&gt;atom.xml&lt;/code&gt; and the button disappears even though &lt;code&gt;show_feed = true&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;generate_feeds&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you want a feed again later, set it back to &lt;code&gt;true&lt;/code&gt;. The &lt;code&gt;feed = true&lt;/code&gt; option in &lt;code&gt;taxonomies&lt;/code&gt; adds a feed for each tag, but only when feeds are enabled.&lt;/p&gt;
&lt;h3 id=&quot;accent-color-and-post-buttons&quot;&gt;Accent color and post buttons&lt;/h3&gt;
&lt;p&gt;The theme’s main color is set in the &lt;code&gt;[extra]&lt;/code&gt; section of &lt;code&gt;zola.toml&lt;/code&gt;, with one value for the light theme and another for the dark one:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;accent_color&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#3e00db&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;accent_color_dark&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#737cff&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It’s used for links, the active menu button, tags, the “Copied!” label on code blocks and the browser’s &lt;code&gt;theme-color&lt;/code&gt; (the bar color on mobile). By default the page background is derived from it too: the theme mixes the accent with white (20% accent, light theme) or black (10% accent, dark theme), so a strong accent tints the whole page.&lt;/p&gt;
&lt;p&gt;Any other color (&lt;code&gt;--bg-color&lt;/code&gt;, &lt;code&gt;--fg-color&lt;/code&gt;, etc.) is a CSS variable defined in &lt;code&gt;themes/xuan/sass/_variables.scss&lt;/code&gt;, and you can override it in &lt;code&gt;sass/custom.scss&lt;/code&gt; (see “Customizing part of the theme”). This site keeps the accent for the elements only, with a neutral background. The selectors are the same ones the theme uses, so the override covers light mode, dark mode forced by the page, and dark mode coming from the system setting:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme&amp;#39;s value is color-mix(in srgb, var(--accent-color) 20%, white)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; (10% with black in dark mode), in themes/xuan/sass/_variables.scss&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;root&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;    --bg-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; rgb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 255&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;data-theme&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;dark&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;    --bg-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; rgb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 18&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 18&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;media&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #D5CED9);&quot;&gt;prefers-color-scheme&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; dark&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;    :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;root&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;not&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;data-theme&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;light&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;        --bg-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; rgb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 18&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 18&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The dark value appears twice and both must match: the first applies when dark mode is forced, the second when it comes from the system.&lt;/p&gt;
&lt;p&gt;In the same &lt;code&gt;[extra]&lt;/code&gt; section you can choose which buttons appear in each post’s quick actions (the floating buttons in the corner), for example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Button listing the posts that link to the current one&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_backlinks&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;cleaning-up-the-footer&quot;&gt;Cleaning up the footer&lt;/h3&gt;
&lt;p&gt;By default, xuan’s footer shows a row of link buttons (a “Blog” badge), the copyright line and a “Powered by Zola and Xuan” line. All of it is controlled from the &lt;code&gt;[extra.footer]&lt;/code&gt; section of &lt;code&gt;zola.toml&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;footer&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Removes the link badges above the copyright line&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;links&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Hides the &amp;quot;Powered by Zola and Xuan&amp;quot; line&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_powered_by&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Hides the &amp;quot;© site name, year&amp;quot; line&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_copyright&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The footer is the same on every page, so these changes apply to the whole site, not only the home page.&lt;/p&gt;
&lt;p&gt;The theme can also show social icon buttons in the footer, with a &lt;code&gt;socials&lt;/code&gt; list in &lt;code&gt;[extra.footer]&lt;/code&gt;. This site shows them in the top bar instead (see “Social icons in the top bar”), so &lt;code&gt;[extra.footer]&lt;/code&gt; has no &lt;code&gt;socials&lt;/code&gt; and the footer stays empty.&lt;/p&gt;
&lt;h3 id=&quot;using-a-language-other-than-english&quot;&gt;Using a language other than English&lt;/h3&gt;
&lt;p&gt;xuan’s interface text (dates, “minutes read”, menu names, etc.) only comes in English and Chinese. To use another language, set it in &lt;code&gt;zola.toml&lt;/code&gt; (for example &lt;code&gt;default_language = &quot;es&quot;&lt;/code&gt;) and create &lt;code&gt;i18n/es.toml&lt;/code&gt; in your project root, not inside the theme. Copy &lt;code&gt;themes/xuan/i18n/en.toml&lt;/code&gt; and translate the values. The menu &lt;code&gt;name&lt;/code&gt;s (&lt;code&gt;Blog&lt;/code&gt;, &lt;code&gt;Archive&lt;/code&gt;, &lt;code&gt;Tags&lt;/code&gt;) are keys translated in that file too.&lt;/p&gt;
&lt;h3 id=&quot;customizing-part-of-the-theme&quot;&gt;Customizing part of the theme&lt;/h3&gt;
&lt;p&gt;If you want to change something the theme doesn’t let you configure, copy that specific template from the theme into your &lt;code&gt;templates/&lt;/code&gt; folder, keeping the same path, and edit it. Zola will use your copy instead of the theme’s.&lt;/p&gt;
&lt;p&gt;For example, to make the top bar show only the home icon without the site name:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;mkdir&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; templates/partials&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;cp&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; themes/xuan/templates/partials/nav.html&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; templates/partials/nav.html&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In &lt;code&gt;templates/partials/nav.html&lt;/code&gt;, inside &lt;code&gt;&amp;lt;li id=&quot;home&quot;&amp;gt;&lt;/code&gt;, delete the line with &lt;code&gt;config.title&lt;/code&gt; and move the title into an &lt;code&gt;aria-label&lt;/code&gt;, so screen readers still announce the link. Also give the link the theme’s &lt;code&gt;circle&lt;/code&gt; class, the one its icon-only buttons (like the theme switcher) use, so it gets the same padding on every side. This is how the &lt;code&gt;&amp;lt;li id=&quot;home&quot;&amp;gt;&lt;/code&gt; block ends up:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; id&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;home&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ get_url(path=&amp;#39;/&amp;#39;, lang=lang) }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; {%&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; if&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; current_url&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; default&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;(value&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; |&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        trim_end(pat&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; safe&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;get_url(path&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; ,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; lang&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;lang)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; trim_end(pat&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; )&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; safe&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        -%}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;circle active&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; {%-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; %}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;circle&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; {%-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; endif&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; %}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; aria-label&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ config.title }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;icon&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;i&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;circle&lt;/code&gt; class isn’t enough on its own: the theme leaves a margin to the right of the icon (to separate it from the text that’s no longer there), and on narrow screens it stretches the link to the full width. To fix both, create &lt;code&gt;sass/custom.scss&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Round home button with only the icon (see templates/partials/nav.html).&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The selectors repeat the theme&amp;#39;s (themes/xuan/sass/_nav.scss) so they have&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; the same specificity and win by being loaded later.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;site-nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;home&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    justify-content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; center&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    a&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        flex&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; auto&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;icon&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        margin-inline-end&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Zola compiles it to &lt;code&gt;custom.css&lt;/code&gt;, and &lt;code&gt;styles = [&quot;custom.css&quot;]&lt;/code&gt; in the &lt;code&gt;[extra]&lt;/code&gt; section of &lt;code&gt;zola.toml&lt;/code&gt; (already in the configuration from step 3) makes the theme load it after its own styles. If you use a shorter selector, such as &lt;code&gt;#home .icon&lt;/code&gt;, it will be less specific than the theme’s and won’t apply.&lt;/p&gt;
&lt;p&gt;In the same copy of &lt;code&gt;nav.html&lt;/code&gt; you can also remove the “Skip to Main Content” link. It’s a link the theme puts at the start of the top bar and only shows when it gets keyboard focus (for example, pressing Tab right after the page loads), so keyboard and screen reader users can jump past the menu. With a menu as short as this one it adds little, so this site removes it. Delete these lines, right after &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#main-content&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; tabindex&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {{ &lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #F92672);font-style: italic;&quot;&gt;xuan.translate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; key&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;&amp;quot;skip_to_content&amp;quot;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; default&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;&amp;quot;Skip&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; to&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; Main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; Content&lt;/span&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;&amp;quot;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; language_strings&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{language_strings}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; lang&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{lang}&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;span&gt; }}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Keep in mind that when you update the theme (&lt;code&gt;git pull&lt;/code&gt; inside &lt;code&gt;themes/xuan&lt;/code&gt;), any changes it brings to that template won’t apply, because your copy is used instead. Compare it with the new version if something stops working.&lt;/p&gt;
&lt;p&gt;You can also replace a theme feature with your own. xuan’s copy button sits in a bar above each code block, along with the block’s language (&lt;code&gt;shellscript&lt;/code&gt;, &lt;code&gt;plain&lt;/code&gt;…). On this site the bar is gone: hovering over a code block shows a “Click to copy” label, and clicking anywhere on the block copies it.&lt;/p&gt;
&lt;p&gt;First, disable the theme’s button and load your own script in the &lt;code&gt;[extra]&lt;/code&gt; section of &lt;code&gt;zola.toml&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;show_copy_button&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Files from static/&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;scripts&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;copy-code.js&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then create &lt;code&gt;static/copy-code.js&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Copies a code block when you click anywhere on it&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;click&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; async&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;event&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; block&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;target&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;closest&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;pre.giallo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; !&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;navigator&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;clipboard&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; If the user is selecting text by hand, don&amp;#39;t copy the whole block&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;window&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;getSelection&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;toString&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; giallo.js wraps each block in a .pre-container, which holds the label&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; container&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; block&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;closest&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;.pre-container&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; block&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    try&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        await&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; navigator&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;clipboard&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;writeText&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;block&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;querySelector&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;code&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;innerText&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        container&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;dataset&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;copyStatus&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Copied!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; catch&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        container&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;dataset&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;copyStatus&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Copy failed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;    clearTimeout&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;container&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;copyTimer&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;    container&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;copyTimer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; setTimeout&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; delete&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; container&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;dataset&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;copyStatus&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1500&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And draw the label in &lt;code&gt;sass/custom.scss&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;pre-container&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; relative&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    pre&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;giallo&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        cursor&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; pointer&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme leaves the top corners square for its bar, which is gone&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--rounded-corner&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;    &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;hover&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;after&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;    &amp;amp;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;data-copy-status&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;after&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Click to copy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; absolute&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        inset-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        inset-inline-end&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The label ignores clicks, so they always reach the code block&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        pointer-events&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--rounded-corner-small&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme&amp;#39;s background and text colors, which switch with light/dark mode like the code theme&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--glass-bg&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        backdrop-filter&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; blur&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        padding&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.25&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Fixed width (that of &amp;quot;Click to copy&amp;quot;) and centered text, so the bubble keeps its size when it switches to &amp;quot;Copied!&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        box-sizing&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; content-box&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        inline-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 13&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;ch&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        text-align&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; center&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        white-space&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; nowrap&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--fg-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        font-weight&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; bold&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        font-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--font-size-x-small&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        line-height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1.2&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; After clicking, the label shows the result (&amp;quot;Copied!&amp;quot;) for 1.5 seconds&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;    &amp;amp;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;data-copy-status&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;after&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; attr&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;data-copy-status&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--accent-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--contrast-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The clipboard only works on secure pages (&lt;code&gt;https://&lt;/code&gt;, or &lt;code&gt;localhost&lt;/code&gt;/&lt;code&gt;127.0.0.1&lt;/code&gt; while developing), and selecting part of a block by hand still works, because the script doesn’t copy while there’s a text selection.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sass/custom.scss&lt;/code&gt; is also the place for small visual tweaks. For example, xuan draws the separators you write with &lt;code&gt;---&lt;/code&gt; in Markdown as dashed lines. To make them continuous:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme uses a repeating-linear-gradient in themes/xuan/sass/_typography.scss&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;hr&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    background&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--fg-muted-3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Another one: inline code (text between backticks in Markdown, like &lt;code&gt;this&lt;/code&gt;) is red in xuan. This site shows it in the accent color, keeping the theme’s light background. The rule uses the theme’s own selector, so it applies to inline code but not to code blocks, and it wins because &lt;code&gt;custom.css&lt;/code&gt; loads after the theme’s styles:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme&amp;#39;s rule is in themes/xuan/sass/_code.scss&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;code&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;not&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;pre&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; code&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--accent-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Other common variations go in the same rule: &lt;code&gt;color: inherit&lt;/code&gt; for the same color as the surrounding text, &lt;code&gt;background-color: transparent&lt;/code&gt;, &lt;code&gt;box-shadow: none&lt;/code&gt; and &lt;code&gt;padding: 0&lt;/code&gt; for plain monospace text with no box, or &lt;code&gt;font-size: inherit&lt;/code&gt; to stop the theme from shrinking it to 87.5%.&lt;/p&gt;
&lt;p&gt;Don’t make these changes in the theme’s own files (&lt;code&gt;themes/xuan/sass/...&lt;/code&gt;), even though it’s tempting to edit the rule right where it is. The theme is a submodule: your edits there are never uploaded with your repository, so the published site wouldn’t have them, and they’d be lost when you update the theme.&lt;/p&gt;
&lt;p&gt;The width of the central column is a CSS variable too. The theme sets it to &lt;code&gt;45rem&lt;/code&gt; (about 720px). This site makes the column take half of the window on large screens, and the full width when the window is narrow (for example, snapped to half of the screen):&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme&amp;#39;s value is in themes/xuan/sass/_variables.scss&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;root&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;    --container-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; max&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;vw&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 60&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It works because the variable is a &lt;em&gt;maximum&lt;/em&gt; width: the theme gives the content &lt;code&gt;width: calc(100% - 2rem)&lt;/code&gt; and limits it with &lt;code&gt;max-width: var(--container-width)&lt;/code&gt;. On a large window, &lt;code&gt;50vw&lt;/code&gt; (half of the window) wins. On a narrow one, the maximum never drops below &lt;code&gt;60rem&lt;/code&gt; (960px), so if the window is narrower than that, the content just fills it, leaving only a small margin on each side.&lt;/p&gt;
&lt;p&gt;The theme also leaves a large empty gap between the top bar and each post’s header (date, title and tags): the top margin of &lt;code&gt;main&lt;/code&gt; (4.25rem) plus the top margin of &lt;code&gt;#heading&lt;/code&gt; (2rem). To reduce it only on post pages:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;has&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;heading&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    margin-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;heading&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    margin-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; More space between the &amp;quot;minutes read&amp;quot; / tags line and the post content (the theme uses 1rem)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    margin-block-end&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Posts with a banner image aren’t affected, because the theme’s rule for them (&lt;code&gt;#banner-container + #heading&lt;/code&gt;) is more specific.&lt;/p&gt;
&lt;p&gt;Some more tweaks to the content area, &lt;code&gt;#main-content&lt;/code&gt;. The theme leaves body text at the browser’s default size (16px), which this site raises to 18px. Inline code and other sizes the theme sets in &lt;code&gt;em&lt;/code&gt; grow in proportion, while headings and cards use &lt;code&gt;rem&lt;/code&gt; and don’t change. Code blocks stay at 16px, so long lines don’t need even more horizontal scrolling.&lt;/p&gt;
&lt;p&gt;Paragraphs (each block of text separated by a blank line in the Markdown) also get more space between them: &lt;code&gt;1.5em&lt;/code&gt;, a full line of text, instead of the browser’s &lt;code&gt;1em&lt;/code&gt;. Being in &lt;code&gt;em&lt;/code&gt;, it grows with the text size. The description of the project cards (see “Project cards on the home page”) is also a &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;, so it’s excluded, or the cards would get taller:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;main-content&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    font-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1.125&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    pre&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        font-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;not&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-bio&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        margin-block&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;em&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On the home page, headings get more space above them too: &lt;code&gt;4rem&lt;/code&gt; before &lt;code&gt;#&lt;/code&gt; and &lt;code&gt;##&lt;/code&gt; and &lt;code&gt;3rem&lt;/code&gt; before &lt;code&gt;###&lt;/code&gt;, instead of the theme’s &lt;code&gt;2rem&lt;/code&gt;. That separates the sections (“Hi, I’m Salvador”, “Projects”) more clearly. The rule only matches headings that sit directly inside &lt;code&gt;#main-content&lt;/code&gt;, which only happens on the home page. On &lt;code&gt;/blog/&lt;/code&gt; the post titles are inside each card’s &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;, and in posts the headings are inside the post’s &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;, so neither changes; an earlier version that also matched &lt;code&gt;article &amp;gt; h2&lt;/code&gt; gave the cards on &lt;code&gt;/blog/&lt;/code&gt; an awkward gap above their titles. &lt;code&gt;:not(:first-child)&lt;/code&gt; leaves alone the heading that opens the page, so it doesn’t move away from the top bar:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;main-content&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;is&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; h2&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;not&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;first-child&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        margin-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 4&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;h3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;not&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;first-child&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        margin-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 3&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The last tweak fixes a mobile bug. On a phone, a post with a code block inside a list item made the whole page wider than the screen, so you had to zoom out to read it. &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; is a CSS grid, and grid items have &lt;code&gt;min-width: auto&lt;/code&gt; by default, so they never shrink below their content’s width. The code block, made narrower by the list’s indentation, pushed the whole content column wider instead of scrolling inside its own box. Letting the column shrink fixes it:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;main-content&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    min-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;social-icons-in-the-top-bar&quot;&gt;Social icons in the top bar&lt;/h3&gt;
&lt;p&gt;This site shows its social links (GitHub and YouTube) as round icon buttons in the top bar, after Blog and Archive and a separator line. The theme only supports them in the footer, so they need three changes.&lt;/p&gt;
&lt;p&gt;First, the list goes in &lt;code&gt;[extra.nav]&lt;/code&gt; in &lt;code&gt;zola.toml&lt;/code&gt;, with the same format the theme uses for the footer. &lt;code&gt;icon&lt;/code&gt; is a URL-encoded SVG, without the &lt;code&gt;data:image/svg+xml,&lt;/code&gt; prefix:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;extra&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;nav&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;socials&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;https://github.com/slvdr510&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;GitHub&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; icon&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;%3Csvg role=&amp;#39;img&amp;#39; viewBox=&amp;#39;0 0 24 24&amp;#39; ...&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; url&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;https://www.youtube.com/@slvdr510&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; name&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;YouTube&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; icon&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;%3Csvg role=&amp;#39;img&amp;#39; viewBox=&amp;#39;0 0 24 24&amp;#39; ...&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The theme’s example config (&lt;code&gt;themes/xuan/zola.toml&lt;/code&gt;) already includes the GitHub icon, so you can copy it from there. For other networks, get the SVG from &lt;a rel=&quot;external&quot; href=&quot;https://simpleicons.org&quot;&gt;simpleicons.org&lt;/a&gt; and encode it with &lt;a rel=&quot;external&quot; href=&quot;https://yoksel.github.io/url-encoder/&quot;&gt;yoksel.github.io/url-encoder&lt;/a&gt;, setting “external quotes” to &lt;em&gt;double&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Second, the copy of &lt;code&gt;templates/partials/nav.html&lt;/code&gt; from the previous section draws them, right after the loop over the menu &lt;code&gt;links&lt;/code&gt; (the &lt;code&gt;{%- endfor -%}&lt;/code&gt; before the search button):&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{%- if config.extra?.nav?.socials %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;divider&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{%- for link in config.extra?.nav?.socials %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;social&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;circle&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ link.url | safe }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; rel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ rel_attributes }} me&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; title&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ link.name }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; aria-label&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ link.name }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;icon&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;--icon: url(&amp;quot;data:image/svg+xml,{{ link.icon }}&amp;quot;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;i&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;li&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{%- endfor %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{%- endif %}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;They use the same &lt;code&gt;circle&lt;/code&gt; class as the home button, so they’re the same size. &lt;code&gt;title&lt;/code&gt; shows the name on hover, and &lt;code&gt;aria-label&lt;/code&gt; gives screen readers a name for an icon with no text.&lt;/p&gt;
&lt;p&gt;Third, the theme only paints these icons inside the footer, where its rule sets the SVG as a mask on the icon. The same rule for the top bar goes in &lt;code&gt;sass/custom.scss&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;site-nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;social&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;icon&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    -webkit-mask-image&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--icon&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    mask-image&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--icon&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;the-top-bar-on-mobile&quot;&gt;The top bar on mobile&lt;/h3&gt;
&lt;p&gt;On screens up to 480px wide, xuan changes the top bar in two ways: it puts the home button on its own row, with the links on a second one, and it stops the bar from following the scroll (it switches from &lt;code&gt;position: sticky&lt;/code&gt; to &lt;code&gt;position: relative&lt;/code&gt;). This site keeps the bar the same as on desktop, all on one row, and makes it hide while you scroll down and reappear while you scroll up.&lt;/p&gt;
&lt;p&gt;To keep everything on one row, undo the theme’s mobile rules: the home button’s full-width &lt;code&gt;flex-basis&lt;/code&gt;, the hidden separator lines and the smaller links. On very narrow phones (up to 360px) the links and separators get a bit less space, so the social icons still fit:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;media&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; only&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; screen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; and&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;max-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 480&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;    #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;site-nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; nav&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        li&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;home&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            flex-basis&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; auto&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        li&lt;/span&gt;&lt;span&gt; &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            padding-inline&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            font-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;divider&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            display&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; block&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;media&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; only&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; screen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; and&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;max-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 360&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;    #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;site-nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; nav&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        li&lt;/span&gt;&lt;span&gt; &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;not&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;circle&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            padding-inline&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;divider&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            margin-inline&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.125&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To hide and show it with the scroll, the bar is made sticky again, with the same 1rem gap from the top edge that the theme uses on desktop:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;media&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; only&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; screen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; and&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;max-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 480&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;    #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;site-nav&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; sticky&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        inset-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        margin-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        will-change&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt; transform&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Smooths out scroll jumps (mouse wheel, fast swipes, or smooth scrolling&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; turned off in the system), so the bar slides instead of vanishing at once&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        transition&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt; transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.15&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; ease-out&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; When the script finishes a gesture that was left halfway&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;        &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;nav-snapping&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            transition-duration&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;s&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then &lt;code&gt;static/nav-scroll.js&lt;/code&gt;, added to &lt;code&gt;scripts&lt;/code&gt; in &lt;code&gt;zola.toml&lt;/code&gt;, moves the bar with the scroll. It doesn’t just toggle it on and off: it shifts it by exactly as many pixels as you scroll. Scrolling down pushes it up out of view at the same pace as the content, and scrolling up brings it back little by little, like the address bar of mobile browsers. If you stop with the bar halfway, it finishes showing or hiding, whichever is closer:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;getElementById&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;site-nav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;nav&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Same width as the media query in sass/custom.scss&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; mobile&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; window&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;matchMedia&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;(max-width: 480px)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Time without scrolling after which a half-done gesture is completed&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; snapDelay&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 150&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; lastY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; Math&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;max&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;window&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; 0 = fully visible; -hiddenOffset() = fully hidden&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; ticking&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; snapTimer&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; How far up it has to go to be hidden: its height, the gap above it&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; (top in sass/custom.scss) and a few more pixels for the shadow&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; hiddenOffset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; nav&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;offsetHeight&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; parseFloat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;getComputedStyle&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;nav&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;top&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 8&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;snap&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        nav&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;classList&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;toggle&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;nav-snapping&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; snap&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        nav&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;style&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;translateY(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #F92672);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #F92672);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;px)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; show&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;        apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;true&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; update&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        ticking&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; false&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; On iOS, the bounce at the top of the page gives a negative scrollY&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; y&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; Math&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;max&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;window&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;scrollY&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; delta&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; y&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; lastY&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        lastY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; y&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;mobile&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;matches&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;            offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;            apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;            return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; max&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; hiddenOffset&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; Math&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;min&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; Math&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;max&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;max&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; delta&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; At the very top, or while using the menu with the keyboard, it&amp;#39;s fully visible&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; nav&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;contains&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;activeElement&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;        apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;        clearTimeout&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;snapTimer&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        snapTimer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; setTimeout&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;            if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;max&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;            offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; offset&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; &amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;max&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;max&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;            apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;true&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; snapDelay&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;    window&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;ticking&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;            ticking&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;            requestAnimationFrame&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;update&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt; passive&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;    nav&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;focusin&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; show&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;    mobile&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;change&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; show&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;requestAnimationFrame&lt;/code&gt; runs the calculation at most once per frame, however many scroll events the browser fires, and &lt;code&gt;passive: true&lt;/code&gt; tells the browser the listener never blocks scrolling.&lt;/p&gt;
&lt;p&gt;One more detail. When the operating system asks for reduced motion (for example, KDE with the animation speed set to “Instant”, or the matching accessibility setting on a phone), the browser reports it to websites, and xuan responds by setting every transition on the page to &lt;code&gt;0s&lt;/code&gt; with &lt;code&gt;!important&lt;/code&gt; (in &lt;code&gt;themes/xuan/sass/_general.scss&lt;/code&gt;). That’s a good default for animations that play on their own, but here the movement comes from the user’s own scroll, so this site keeps the short transition:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;media&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; only&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; screen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; and&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;max-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 480&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; and&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #D5CED9);&quot;&gt;prefers-reduced-motion&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; reduce&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;    #&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;site-nav&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        transition-duration&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.15&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; !important&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;        &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;nav-snapping&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            transition-duration&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; !important&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To try all this on a computer, open the browser’s responsive view (F12, then Ctrl+Shift+M in Firefox and Chrome) and pick a phone width.&lt;/p&gt;
&lt;h3 id=&quot;always-opening-pages-at-the-top&quot;&gt;Always opening pages at the top&lt;/h3&gt;
&lt;p&gt;Following a link already opens the new page at the top, but browsers restore the previous scroll position when you reload a page or go Back or Forward. On this site every page (home, &lt;code&gt;/blog/&lt;/code&gt;, &lt;code&gt;/archive/&lt;/code&gt;, each post) always opens at the top, with &lt;code&gt;static/scroll-top.js&lt;/code&gt;, added to &lt;code&gt;scripts&lt;/code&gt; in &lt;code&gt;zola.toml&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Don&amp;#39;t let the browser restore the position on reload or Back/Forward&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;scrollRestoration&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; in&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; history&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; history&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;scrollRestoration&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;manual&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; toTop&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;location&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;hash&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; window&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;scrollTo&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt; top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; left&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; behavior&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;instant&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;    toTop&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; &amp;quot;pageshow&amp;quot; also fires when going Back to a page kept in the browser&amp;#39;s&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Back/Forward cache, which isn&amp;#39;t loaded again and would keep its scroll&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;    window&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;pageshow&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; toTop&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Links to a section (an address ending in &lt;code&gt;#heading&lt;/code&gt;) still jump to it, because the script does nothing when the address has a &lt;code&gt;#&lt;/code&gt;. &lt;code&gt;behavior: &quot;instant&quot;&lt;/code&gt; avoids the smooth scrolling the theme turns on for the whole page, so the page doesn’t visibly scroll up when it opens.&lt;/p&gt;
&lt;p&gt;While you write with &lt;code&gt;zola serve&lt;/code&gt;, the page reloads every time you save a file, so it also goes back to the top on every save.&lt;/p&gt;
&lt;h3 id=&quot;your-own-favicon&quot;&gt;Your own favicon&lt;/h3&gt;
&lt;p&gt;By default the browser tab shows xuan’s icon: the theme links &lt;code&gt;favicon.png&lt;/code&gt; and &lt;code&gt;apple-touch-icon.png&lt;/code&gt; from &lt;code&gt;themes/xuan/static/&lt;/code&gt;. To use your own icon, put it in your &lt;code&gt;static/&lt;/code&gt; folder. Zola copies everything in &lt;code&gt;static/&lt;/code&gt; to the root of the site, so &lt;code&gt;static/favicon.ico&lt;/code&gt; is served at &lt;code&gt;/favicon.ico&lt;/code&gt;. A file left in the project root isn’t published.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;mv&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; my-icon.ico&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; static/favicon.ico&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The theme writes its icon links in &lt;code&gt;templates/partials/favicon.html&lt;/code&gt;, so override that template with your own copy. You don’t need to copy the theme’s version first: replace its contents with a single line.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;link&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; rel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;icon&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;image/x-icon&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/favicon.ico&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The path is root-relative (&lt;code&gt;/favicon.ico&lt;/code&gt;) instead of &lt;code&gt;get_url(path=&#39;favicon.ico&#39;)&lt;/code&gt;, so the icon loads from whichever domain serves the page. The &lt;code&gt;scripts/relative_links.sh&lt;/code&gt; script from step 5 would make it relative anyway, but this way it also works without that script.&lt;/p&gt;
&lt;p&gt;Some things to keep in mind:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An &lt;code&gt;.ico&lt;/code&gt; file can contain several sizes in one file (16×16, 32×32, 48×48…), and the browser picks the one it needs. Check what yours contains with &lt;code&gt;file static/favicon.ico&lt;/code&gt;. 16×16 and 32×32 are enough for tabs. Very large sizes only make the file heavier, and browsers download it on the first visit to every page.&lt;/li&gt;
&lt;li&gt;Without the theme’s &lt;code&gt;apple-touch-icon.png&lt;/code&gt; line, iPhones and iPads use a screenshot of the page when someone adds the site to their home screen. If you want a proper icon there, add a 180×180 PNG to &lt;code&gt;static/&lt;/code&gt; and a second line: &lt;code&gt;&amp;lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;180x180&quot; href=&quot;/apple-touch-icon.png&quot; /&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Browsers cache favicons aggressively. If you still see the old icon after a rebuild, open the site in a private window or visit &lt;code&gt;/favicon.ico&lt;/code&gt; directly.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;project-cards-on-the-home-page&quot;&gt;Project cards on the home page&lt;/h3&gt;
&lt;p&gt;The home page has a “Projects” section with a card for each of my GitHub repositories: an icon, the repository name and a short description. Adding a project means adding one line to the front matter of &lt;code&gt;content/_index.md&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;title = &amp;quot;Home&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;extra&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt; url is required; name, description and image are optional&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;repos = [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    { url = &amp;quot;https://github.com/slvdr510/moodle-archive&amp;quot;, description = &amp;quot;Download and version-track Moodle course files locally with a single click.&amp;quot;, image = &amp;quot;moodle-archive.svg&amp;quot; },&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt;##&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FF00AA);font-weight: bold;&quot;&gt; Projects&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{{ &lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;repo_cards&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; repos&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{section.extra.repos}&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;span&gt; }}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;url&lt;/code&gt;: the repository. Required.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;name&lt;/code&gt;: optional. By default, the card shows the last part of the URL, which is the repository’s name.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;description&lt;/code&gt;: optional, one short sentence. The theme’s card style cuts it at two lines.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;image&lt;/code&gt;: optional. A file name from &lt;code&gt;static/repos/&lt;/code&gt; (&lt;code&gt;&quot;moodle-archive.svg&quot;&lt;/code&gt; is served at &lt;code&gt;/repos/moodle-archive.svg&lt;/code&gt;), or a full URL. Without it, the card shows the GitHub logo.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;components-instead-of-shortcodes&quot;&gt;Components instead of shortcodes&lt;/h4&gt;
&lt;p&gt;The last line calls a &lt;strong&gt;component&lt;/strong&gt;. Since 0.23, Zola has components where it used to have shortcodes: a component is declared in &lt;code&gt;templates/components/&lt;/code&gt; with &lt;code&gt;{% component name(arguments) %}&lt;/code&gt;, and called from Markdown as &lt;code&gt;{{ &amp;lt;name argument={value} /&amp;gt; }}&lt;/code&gt;. A file in the old &lt;code&gt;templates/shortcodes/&lt;/code&gt; folder isn’t found, and the build fails with &lt;code&gt;Unknown function&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Components only see the arguments they receive, so the list is passed explicitly, &lt;code&gt;repos={section.extra.repos}&lt;/code&gt; from the home page (in a post, it would be &lt;code&gt;page.extra.repos&lt;/code&gt;). This is &lt;code&gt;templates/components/repo_cards.html&lt;/code&gt;, with the GitHub logo’s SVG path shortened:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;html&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{% component repo_cards(repos) %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;links-grid repo-cards&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {%- for repo in repos %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {%- set name = repo.name | default(value=repo.url | trim_end(pat=&amp;quot;/&amp;quot;) | split(pat=&amp;quot;/&amp;quot;) | last) %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ repo.url }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;link-card repo-card&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; target&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;_blank&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; rel&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;noopener noreferrer&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;link-avatar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- if repo.image %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- if &amp;quot;://&amp;quot; in repo.image %}{% set src = repo.image %}{% else %}{% set src = &amp;quot;/repos/&amp;quot; ~ repo.image %}{% endif %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- if &amp;quot;.svg&amp;quot; in repo.image %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {#- SVG: used as a stencil (mask) and filled with a color in CSS -#}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;repo-icon&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;-webkit-mask-image: url(&amp;#39;{{ src }}&amp;#39;); mask-image: url(&amp;#39;{{ src }}&amp;#39;);&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;span&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- else %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; src&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{{ src }}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; alt&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; loading&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;lazy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- endif %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- else %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; role&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; viewBox&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;0 0 24 24&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; xmlns&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;http://www.w3.org/2000/svg&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; aria-hidden&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;path&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; d&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;...&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;svg&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- endif %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;link-info&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;link-name&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ name }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;span&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- if repo.description %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;link-bio&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;{{ repo.description }}&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;p&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;            {%- endif %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;a&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    {%- endfor %}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{% endcomponent repo_cards %}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;links-grid&lt;/code&gt; and &lt;code&gt;link-card&lt;/code&gt; classes come from the theme, which uses them for its links page (&lt;code&gt;themes/xuan/sass/_links.scss&lt;/code&gt;), so the cards get the theme’s look for free. The images have an empty &lt;code&gt;alt&lt;/code&gt; because they’re decorative: the name right next to them already says what the card is.&lt;/p&gt;
&lt;h4 id=&quot;the-card-styles&quot;&gt;The card styles&lt;/h4&gt;
&lt;p&gt;The rest goes in &lt;code&gt;sass/custom.scss&lt;/code&gt;. The grid shows two cards per row and one on mobile. If the number of projects is odd, the last card sits alone and centered on its row. To do that, each row is split into four columns, every card spans two, and a lone last card takes the two in the middle, so it keeps the same width as the others. &lt;code&gt;grid-auto-rows: 1fr&lt;/code&gt; makes every row as tall as the tallest card, so all cards have the same size:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-cards&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    grid-template-columns&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; repeat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; minmax&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;fr&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    grid-auto-rows&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;fr&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    margin-block&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-card&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        grid-column&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt; span&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-card&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;last-child&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;nth-child&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;odd&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        grid-column&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt; span&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    @&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;media&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; only&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; screen&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; and&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;max-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 600&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        grid-template-columns&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; minmax&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;fr&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-card&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-card&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;last-child&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;nth-child&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;odd&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            grid-column&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; auto&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;minmax(0, 1fr)&lt;/code&gt; instead of plain &lt;code&gt;1fr&lt;/code&gt; stops a long description from making one column wider than the other.&lt;/p&gt;
&lt;p&gt;The icons are gray at rest, so they don’t compete with the text, and turn the accent color when you hover over the card. How they get their color depends on the image type:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;SVG (logos):&lt;/strong&gt; the component uses the file as a mask on a &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;, and CSS fills it with a solid color: gray, then the accent. The original colors are replaced, so a multicolor logo becomes a one-color silhouette, which works well for simple icons.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PNG, JPG, WebP (photos):&lt;/strong&gt; &lt;code&gt;mix-blend-mode: luminosity&lt;/code&gt; keeps only the image’s brightness and takes the color from whatever is behind it. Over the card’s neutral background the photo looks grayscale; on hover, the circle behind it turns the accent color, and the photo becomes a two-tone version in that color.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On hover, the card also gets a thicker border in the accent color. Rather than changing &lt;code&gt;border-width&lt;/code&gt;, which would make the card grow and its content shift by a pixel, a 1px &lt;code&gt;box-shadow&lt;/code&gt; with no blur is drawn just outside the theme’s 1px border. The theme’s hover also lifts the card 3px; this site keeps it still:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-card&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-card&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Hover animation length: change only this value&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;    --repo-duration&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.25&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;s&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;    --repo-transition&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-duration&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; ease-in-out&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    transition&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        border-color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-transition&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        box-shadow&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-transition&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        background-color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-transition&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The article gives every link the accent color and an underline&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--fg-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    text-decoration&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;    &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;hover&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme lifts the card 3px and adds a shadow&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        transform&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Thicker border: 1px ring outside the theme&amp;#39;s 1px border&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        box-shadow&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--accent-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; .link-avatar in front, to be more specific than the gray rule below&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-avatar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt; .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-icon&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--accent-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-avatar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;has&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;img&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--accent-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-avatar&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Gray circle behind the default GitHub logo&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--fg-muted-1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--fg-muted-5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        svg&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1.75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1.75&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            fill&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; currentColor&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; SVG images: no circle and no round clipping, so the logo fills almost all&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; of the space (48 of 56px)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;        &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;has&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-icon&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; transparent&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-icon&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            box-sizing&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; border-box&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            padding&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.25&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;%&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;%&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--fg-muted-4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            transition&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt; background-color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-transition&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            -webkit-mask-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; contain&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            mask-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; contain&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            -webkit-mask-repeat&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; no-repeat&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            mask-repeat&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; no-repeat&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            -webkit-mask-position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; center&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            mask-position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; center&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            -webkit-mask-origin&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; content-box&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            mask-origin&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; content-box&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Photos: only the circle&amp;#39;s background color changes on hover, and that&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; can be animated (switching a filter or blend mode would jump)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;        &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;has&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;img&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; transparent&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            transition&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt; background-color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-transition&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        img&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            padding&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            object-fit&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; cover&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;            //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The theme gives every image in an article a shadow and a background&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            box-shadow&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; transparent&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            mix-blend-mode&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; luminosity&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;    .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-name&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        display&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; block&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        transition&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; color&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-transition&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; With &amp;quot;reduce motion&amp;quot;, the theme sets every transition to 0s with !important.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; This hover doesn&amp;#39;t move anything, it only fades colors, so it&amp;#39;s kept:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; reducing motion is about avoiding sliding and zooming, not color changes.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    @&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;media&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #D5CED9);&quot;&gt;prefers-reduced-motion&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; reduce&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;        &amp;amp;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-name&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;link-avatar&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;        .&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;repo-icon&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;            transition-duration&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;--repo-duration&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; !important&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;All the colors in the transition change together, with the same curve and duration, so they read as one animation rather than several separate changes.&lt;/p&gt;
&lt;h3 id=&quot;images-in-posts&quot;&gt;Images in posts&lt;/h3&gt;
&lt;p&gt;To add images to a post, create the post as a folder with an &lt;code&gt;index.md&lt;/code&gt; instead of a single &lt;code&gt;.md&lt;/code&gt; file, and put the images next to it. Zola calls these &lt;em&gt;colocated assets&lt;/em&gt; and copies them along with the post. This post, for example, lives in &lt;code&gt;content/blog/0002_zola_init/index.md&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;content/blog/&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;└── my-post/&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── index.md     # The post (same front matter as before)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    └── diagram.png  # Its images&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then reference each image by its file name, with standard Markdown:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);&quot;&gt;![&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Description of the image&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);&quot;&gt;]&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #C74DED);text-decoration: underline;&quot;&gt;diagram.png&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The text in brackets is the &lt;em&gt;alt text&lt;/em&gt;: screen readers read it, and browsers show it if the image fails to load. The post’s URL doesn’t change when you turn it into a folder, because Zola takes it from the folder name.&lt;/p&gt;
&lt;p&gt;To keep the post folders in order in your file manager, you can put a number in front of their names, like &lt;code&gt;0001_ctf_xor_encryption&lt;/code&gt; and &lt;code&gt;0002_zola_init&lt;/code&gt;. Zola turns the folder name into the URL, changing &lt;code&gt;_&lt;/code&gt; to &lt;code&gt;-&lt;/code&gt;, so the number ends up in the URL too: &lt;code&gt;/blog/0002-zola-init/&lt;/code&gt;. This site keeps it, and also writes the URL explicitly with &lt;code&gt;slug&lt;/code&gt; in the front matter:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;title&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Creation of this blog&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;date&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; 2026-10-07&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;slug&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;0002-zola-init&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#82071E, #D5CED9);font-style: italic;&quot;&gt;+++&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With &lt;code&gt;slug&lt;/code&gt;, the URL no longer depends on the folder name: renaming the folder doesn’t break links people have already shared. If you’d rather not have the number in the URL, set &lt;code&gt;slug = &quot;zola-init&quot;&lt;/code&gt; instead. The order on the site doesn’t depend on the folder names: &lt;code&gt;/blog/&lt;/code&gt; lists posts by &lt;code&gt;date&lt;/code&gt;, newest first, because of &lt;code&gt;sort_by = &quot;date&quot;&lt;/code&gt; in &lt;code&gt;content/blog/_index.md&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For images shared by several posts (a logo, for example), put them in &lt;code&gt;static/&lt;/code&gt; instead, such as &lt;code&gt;static/images/logo.png&lt;/code&gt;, and reference them with a leading slash: &lt;code&gt;![Logo](/images/logo.png)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Keep the images light: large screenshots or photos are worth resizing or converting to &lt;code&gt;.webp&lt;/code&gt; before adding them, so pages load fast. Also use simple file names, in lowercase and with hyphens instead of spaces or symbols.&lt;/p&gt;
&lt;h4 id=&quot;opening-images-full-size&quot;&gt;Opening images full size&lt;/h4&gt;
&lt;p&gt;By default, xuan slightly enlarges images when you hover over them, but clicking does nothing. On this site the hover effect is gone, and clicking an image opens it over the page (a &lt;em&gt;lightbox&lt;/em&gt;):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Click an image:&lt;/strong&gt; it opens at its real size, scaled down if it doesn’t fit in the window.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Click the open image:&lt;/strong&gt; it zooms in. A large image shows at full resolution, and you can scroll around it, starting at the spot you clicked. A small one is shown at double size.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Click again:&lt;/strong&gt; it zooms back out.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Close:&lt;/strong&gt; click the dark background, press Esc, or use the × button.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The script is &lt;code&gt;static/lightbox.js&lt;/code&gt;, added to &lt;code&gt;scripts&lt;/code&gt; in the &lt;code&gt;[extra]&lt;/code&gt; section of &lt;code&gt;zola.toml&lt;/code&gt; like &lt;code&gt;copy-code.js&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; overlay&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; image&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; open&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;src&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt; alt&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        overlay&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;createElement&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;className&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;lightbox&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;setAttribute&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;role&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;dialog&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;setAttribute&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;aria-modal&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;setAttribute&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;aria-label&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; alt&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Image&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; close&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;createElement&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        close&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;className&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;lightbox-close&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        close&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;setAttribute&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;aria-label&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Close&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        close&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;textContent&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;×&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        close&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;click&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; hide&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        image&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;createElement&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; src&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; alt&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;click&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; toggleZoom&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;click&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;event&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;            if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; overlay&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; hide&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;append&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;close&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; image&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;body&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;append&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;overlay&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;documentElement&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;classList&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;add&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;lightbox-open&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        close&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;focus&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; hide&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;?.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;remove&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;        overlay&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; image&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; null&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;documentElement&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;classList&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;remove&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;lightbox-open&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;    function&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; toggleZoom&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;event&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;classList&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;contains&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;zoomed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;            overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;classList&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;remove&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;zoomed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;            image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;style&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;            return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Clicked point, relative to the image, to keep it in view after zooming&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; rect&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;getBoundingClientRect&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; ratioX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;clientX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; rect&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;left&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; rect&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;width&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; ratioY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;clientY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; rect&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;top&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; rect&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;height&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; If the image was scaled down, zoom to its real size; if it already was, double it&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; fitsAtRealSize&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; rect&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; &amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;naturalWidth&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; width&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; fitsAtRealSize&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;naturalWidth&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; *&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;naturalWidth&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;classList&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;add&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;zoomed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;style&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #F92672);&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #F92672);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;`&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; height&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; width&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; *&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;naturalHeight&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; image&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;naturalWidth&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;scrollLeft&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; ratioX&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; *&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; width&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;clientX&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;        overlay&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;scrollTop&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; ratioY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; *&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; height&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;clientY&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;    document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;click&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;event&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #00E8C6);&quot;&gt; img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;target&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;closest&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;#main-content article img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; Images that are already links keep working as links&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; img&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;closest&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; img&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;classList&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;contains&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;emoji&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; return&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;        open&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;img&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;currentSrc&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; img&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;src&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt; img&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;alt&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;    document&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt;addEventListener&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;keydown&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #00E8C6);&quot;&gt;event&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt; =&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#CF222E, #C74DED);&quot;&gt;        if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #F39C12);&quot;&gt;event&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; ===&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;Escape&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt; overlay&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: light-dark(#8250DF, #FFE66D);&quot;&gt; hide&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And its styles go in &lt;code&gt;sass/custom.scss&lt;/code&gt;. The first rule removes the theme’s hover effect (from &lt;code&gt;themes/xuan/sass/_media.scss&lt;/code&gt;); it needs the &lt;code&gt;#main-content&lt;/code&gt; ID to be more specific than the theme’s rule:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;scss&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;main-content&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; article&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;hover&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; static&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    transform&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    box-shadow&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;lightbox&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    display&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; flex&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; fixed&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    inset&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    z-index&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1000&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; rgb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.85&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    padding&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    overflow&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; auto&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    img&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; margin: auto centers the image without cutting off its top/left&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;        //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; when the zoomed image is bigger than the window&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        margin&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; auto&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        max-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;%&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        max-height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 100&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;%&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        cursor&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; zoom-in&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;    //&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; No theme hover effect inside the lightbox either&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    img&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;hover&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; static&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        transform&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        box-shadow&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;    &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;zoomed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt; img&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        max-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        max-height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;        cursor&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; zoom-out&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;lightbox-close&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; fixed&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    inset-block-start&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    inset-inline-end&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    z-index&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #F92672);&quot;&gt;    cursor&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; pointer&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 999&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; rgb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.15&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 2.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; white&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    font-size&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1.5&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #F39C12);&quot;&gt;rem&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    line-height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #00E8C6);&quot;&gt;    &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;hover&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;        background-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; rgb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 255&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; /&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #F39C12);&quot;&gt; 0.3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: light-dark(#6E7781, #A0A1A7CC);&quot;&gt; The page behind doesn&amp;#39;t scroll while the lightbox is open&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #FFE66D);&quot;&gt;lightbox-open&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#0550AE, #C74DED);&quot;&gt;    overflow&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; hidden&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;notes-and-warnings-in-posts&quot;&gt;Notes and warnings in posts&lt;/h3&gt;
&lt;p&gt;To highlight a note or a warning inside a post you don’t need a shortcode: Zola supports &lt;a rel=&quot;external&quot; href=&quot;https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts&quot;&gt;GitHub-style alerts&lt;/a&gt; natively. Enable them in &lt;code&gt;zola.toml&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #D5CED9);&quot;&gt;markdown&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;github_alerts&lt;/span&gt;&lt;span&gt; =&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then write a blockquote whose first line is the alert type:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;markdown&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #A0A1A7CC);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #C74DED);&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;!NOTE&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #C74DED);&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#116329, #A0A1A7CC);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#116329, #A0A1A7CC);&quot;&gt; The first three values must have a 0 before them, like the following ones.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;There are five types: &lt;code&gt;[!NOTE]&lt;/code&gt;, &lt;code&gt;[!TIP]&lt;/code&gt;, &lt;code&gt;[!IMPORTANT]&lt;/code&gt;, &lt;code&gt;[!WARNING]&lt;/code&gt; and &lt;code&gt;[!CAUTION]&lt;/code&gt;. Zola only adds a &lt;code&gt;markdown-alert-*&lt;/code&gt; class to the blockquote; the colors and icons come from the theme (xuan styles them in &lt;code&gt;themes/xuan/sass/_alerts.scss&lt;/code&gt;). Leave a blank line before and after the block, or Markdown may merge it with the surrounding paragraph.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&quot;5-publishing-on-cloudflare-pages&quot;&gt;5. Publishing on Cloudflare Pages&lt;/h2&gt;
&lt;p&gt;This site is hosted on &lt;a rel=&quot;external&quot; href=&quot;https://pages.cloudflare.com/&quot;&gt;Cloudflare Pages&lt;/a&gt;. Pages connects to the GitHub repository: on every push to &lt;code&gt;main&lt;/code&gt; it builds the site and publishes it, and every other branch gets its own preview address. Hosting a static site like this one is free.&lt;/p&gt;
&lt;h3 id=&quot;before-you-start&quot;&gt;Before you start&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The site is in a GitHub repository, with the theme as a &lt;strong&gt;git submodule&lt;/strong&gt; (see step 2 of “Installing a Theme”). Cloudflare clones the repository with its submodules, so a theme copied in with a plain &lt;code&gt;git clone&lt;/code&gt; arrives empty, and the build fails with &lt;code&gt;Failed to load theme xuan&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;public/&lt;/code&gt; is in &lt;code&gt;.gitignore&lt;/code&gt; (step 6): Cloudflare builds it itself.&lt;/li&gt;
&lt;li&gt;It builds locally without errors:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; check&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; build&lt;/span&gt;&lt;span&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt; sh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; scripts/relative_links.sh&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;creating-the-project&quot;&gt;Creating the project&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;In the &lt;a rel=&quot;external&quot; href=&quot;https://dash.cloudflare.com/&quot;&gt;Cloudflare dashboard&lt;/a&gt;, go to &lt;strong&gt;Workers &amp;amp; Pages&lt;/strong&gt; → &lt;strong&gt;Create&lt;/strong&gt;, and choose the &lt;strong&gt;Pages&lt;/strong&gt; tab → &lt;strong&gt;Connect to Git&lt;/strong&gt;. The Create screen opens on the Workers tab by default; a Worker needs a different setup, and a project created there won’t build this site as it is.&lt;/li&gt;
&lt;li&gt;Authorize Cloudflare’s GitHub app and pick the repository.&lt;/li&gt;
&lt;li&gt;Fill in the build settings:&lt;/li&gt;
&lt;/ol&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;Setting&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;Production branch&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;main&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;Framework preset&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;None&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;Build command&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;em&gt;(below)&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;Build output directory&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;code&gt;public&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;Root directory&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;&lt;em&gt;(empty)&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ol start=&quot;4&quot;&gt;
&lt;li&gt;For the build command, don’t rely on whatever Zola version Cloudflare’s build image happens to have. Download the exact version the site uses, build, and run the link script from step 5:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt;curl&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0550AE, #EE5D43);&quot;&gt;sSL&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;https://github.com/getzola/zola/releases/download/v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;ZOLA_VERSION&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;/zola-v&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1F2328, #00E8C6);&quot;&gt;ZOLA_VERSION&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;-x86_64-unknown-linux-gnu.tar.gz&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#CF222E, #EE5D43);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt; tar&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; xz&lt;/span&gt;&lt;span&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt; ./zola&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; build&lt;/span&gt;&lt;span&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#953800, #FFE66D);&quot;&gt; sh&lt;/span&gt;&lt;span style=&quot;color: light-dark(#0A3069, #96E072);&quot;&gt; scripts/relative_links.sh&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;5&quot;&gt;
&lt;li&gt;Under &lt;strong&gt;Environment variables&lt;/strong&gt;, add &lt;code&gt;ZOLA_VERSION&lt;/code&gt; with the value &lt;code&gt;0.23.6&lt;/code&gt;, without the &lt;code&gt;v&lt;/code&gt;. To upgrade Zola later, change this variable and redeploy, and use the same version locally.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Save and Deploy&lt;/strong&gt;. The first build takes about a minute, and then the site is live at &lt;code&gt;https://&amp;lt;project-name&amp;gt;.pages.dev&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks to &lt;code&gt;scripts/relative_links.sh&lt;/code&gt;, that &lt;code&gt;.pages.dev&lt;/code&gt; address works fully (styles, images and links) even before the real domain is connected. Without it, every page would load its CSS from &lt;code&gt;base_url&lt;/code&gt; and show up unstyled.&lt;/p&gt;
&lt;h3 id=&quot;custom-domain&quot;&gt;Custom domain&lt;/h3&gt;
&lt;p&gt;In the Pages project, go to &lt;strong&gt;Custom domains&lt;/strong&gt; → &lt;strong&gt;Set up a custom domain&lt;/strong&gt; and enter the domain (&lt;code&gt;slvdr510.dev&lt;/code&gt; here). If the domain’s DNS is already managed by Cloudflare, it creates the records itself. If not, an apex domain (one without &lt;code&gt;www.&lt;/code&gt;) needs its nameservers moved to Cloudflare. HTTPS certificates are issued automatically, and after a few minutes the domain shows as &lt;strong&gt;Active&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id=&quot;extra-headers&quot;&gt;Extra headers&lt;/h3&gt;
&lt;p&gt;Cloudflare Pages reads a &lt;code&gt;_headers&lt;/code&gt; file from the root of the published site to add HTTP headers to the responses. In Zola it goes in &lt;code&gt;static/_headers&lt;/code&gt;, which is copied to &lt;code&gt;public/&lt;/code&gt; on every build. This site uses it for two security headers on every page, and to let browsers cache images for a year, since an image never changes without changing its name:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#1F2328, #D5CED9); background-color: light-dark(#FFFFFF, #23262E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;/*&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  X-Content-Type-Options: nosniff&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  Referrer-Policy: strict-origin-when-cross-origin&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;/*.webp&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;  Cache-Control: public, max-age=31536000, immutable&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;X-Content-Type-Options: nosniff&lt;/code&gt; stops browsers from guessing a file’s type and, for example, running as a script something that was served as plain text.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Referrer-Policy: strict-origin-when-cross-origin&lt;/code&gt; means that when a visitor follows a link to another site, that site only sees &lt;code&gt;https://slvdr510.dev&lt;/code&gt;, not which page they came from.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Cache-Control: ... immutable&lt;/code&gt; tells the browser it can reuse its copy of each &lt;code&gt;.webp&lt;/code&gt; image for a year without asking the server again.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;day-to-day&quot;&gt;Day to day&lt;/h3&gt;
&lt;p&gt;After the first setup, publishing is just pushing:&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: left&quot;&gt;You do&lt;/th&gt;&lt;th style=&quot;text-align: left&quot;&gt;Cloudflare does&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;Push to &lt;code&gt;main&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Builds the site and publishes it at the real domain&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: left&quot;&gt;Push to any other branch&lt;/td&gt;&lt;td style=&quot;text-align: left&quot;&gt;Builds a preview at &lt;code&gt;&amp;lt;branch&amp;gt;.&amp;lt;project-name&amp;gt;.pages.dev&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;If a build fails, the deployment shows as &lt;strong&gt;Failed&lt;/strong&gt; with the build log, and the site keeps serving the previous version. To go back to an earlier version, open the &lt;strong&gt;Deployments&lt;/strong&gt; tab, pick that deployment and choose &lt;strong&gt;Rollback to this deployment&lt;/strong&gt;.&lt;/p&gt;
</content>
        
    </entry>
</feed>
