diff options
| author | Lich <author@lch361.net> | 2026-08-11 23:03:07 +0400 |
|---|---|---|
| committer | Lich <author@lch361.net> | 2026-08-11 23:03:07 +0400 |
| commit | 1317ffb104da17128688eff6843ed039b96955f9 (patch) | |
| tree | b6d51920de2a64ca0114e484be0fc57d9e3f6b4e | |
| parent | Updated Zola to 0.22.1 in README (diff) | |
Took advantage of Giallo's built-in line numbering
| -rw-r--r-- | content/articles/2025-06-01/index.md | 6 | ||||
| -rw-r--r-- | content/articles/2026-02-21/index.md | 4 | ||||
| -rw-r--r-- | static/style.css | 12 |
3 files changed, 8 insertions, 14 deletions
diff --git a/content/articles/2025-06-01/index.md b/content/articles/2025-06-01/index.md index 9d05d86..47e25f8 100644 --- a/content/articles/2025-06-01/index.md +++ b/content/articles/2025-06-01/index.md @@ -432,7 +432,7 @@ objdump -d -Mintel zig-out/bin/benchmark ``` {% listing(caption="Disassembly of an arrayListOperation function, optimized for ReleaseSmall") %} -```asm +```asm,linenos push rbp mov rbp, rsp mov rcx, qword ptr [rdi + 0x8] @@ -466,7 +466,7 @@ No vector instructions, so the SIMD parallelization coefficient (previously defined <var>s</var>) is equal to 1. {% listing(caption="Disassembly fragment of an arrayListOperation function, optimized for ReleaseFast") %} -```asm +```asm,linenos push rbp mov rbp, rsp push rbx @@ -490,7 +490,7 @@ Same thing as with ReleaseSmall, but `memmove` is being called at line 13 --- we'll disassemble it as well. {% listing(caption="Disassembly fragment of a memmove function, optimized for ReleaseFast") %} -```asm +```asm,linenos mov rax, rdi cmp rdx, 0xf ja 0x10039dc <memmove+0x3c> diff --git a/content/articles/2026-02-21/index.md b/content/articles/2026-02-21/index.md index 2d12398..21e3f7e 100644 --- a/content/articles/2026-02-21/index.md +++ b/content/articles/2026-02-21/index.md @@ -159,7 +159,7 @@ media*. The following subchapters show how it's done. 1. Eject the SD card from your desktop. {% listing(caption="Complete shell script doing all steps above") %} -```sh +```sh,linenos ALPINE_MIRROR=https://dl-cdn.alpinelinux.org ALPINE_VERSION=3.23 ALPINE_PATCH=3 @@ -432,7 +432,7 @@ image than adding files from scratch. LXC can assist in this via *templates*{{ cite(key="lxc-create(1)") }}. Below are a couple of examples. {% listing(caption='Creating container from Alpine Linux image, template "local"') %} -```sh +```sh,linenos # Installing dependency apk add lxc-templates diff --git a/static/style.css b/static/style.css index 77b9b7f..0a71265 100644 --- a/static/style.css +++ b/static/style.css @@ -540,16 +540,10 @@ main.page-wide pre { } /* Line numbering for code */ -main.page-wide pre.z-code { - counter-reset: line-number; -} - -main.page-wide pre.z-code > code > span::before { - counter-increment: line-number; - width: 2.5em; - display: inline-block; - content: counter(line-number) " "; +.giallo-ln { color: var(--color-light-main); + margin-right: 0.5em; + user-select: none; } main.page-wide table { |
