From 2c517f1d39874030cecedec5413ea7a2e6090bde Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 10 Sep 2025 08:00:00 +0100 Subject: [PATCH] Move zet notes to blog posts Signed-off-by: Oliver Davies --- app/config/sculpin_kernel.yml | 2 -- source/_layouts/zet.html.twig | 1 - source/{_zets => _posts}/1.md | 2 ++ source/{_zets => _posts}/10.md | 2 ++ source/{_zets => _posts}/11.md | 2 ++ source/{_zets => _posts}/12.md | 2 ++ source/{_zets => _posts}/14.md | 2 ++ source/{_zets => _posts}/15.md | 2 ++ source/{_zets => _posts}/16.md | 2 ++ source/{_zets => _posts}/17.md | 2 ++ source/{_zets => _posts}/18.md | 2 ++ source/{_zets => _posts}/19.md | 5 ++++- source/{_zets => _posts}/2.md | 2 ++ source/{_zets => _posts}/20.md | 2 ++ source/{_zets => _posts}/21.md | 2 ++ source/{_zets => _posts}/22.md | 2 ++ source/{_zets => _posts}/23.md | 2 ++ source/{_zets => _posts}/24.md | 7 +++++-- source/{_zets => _posts}/25.md | 2 ++ source/{_zets => _posts}/26.md | 2 ++ source/{_zets => _posts}/27.md | 2 ++ source/{_zets => _posts}/28.md | 2 ++ source/{_zets => _posts}/29.md | 2 ++ source/{_zets => _posts}/3.md | 2 ++ source/{_zets => _posts}/30.md | 2 ++ source/{_zets => _posts}/31.md | 2 ++ source/{_zets => _posts}/32.md | 2 ++ source/{_zets => _posts}/4.md | 2 ++ source/{_zets => _posts}/5.md | 2 ++ source/{_zets => _posts}/6.md | 2 ++ source/{_zets => _posts}/7.md | 2 ++ source/{_zets => _posts}/8.md | 2 ++ source/{_zets => _posts}/9.md | 2 ++ source/_zets/13.md | 8 -------- 34 files changed, 67 insertions(+), 14 deletions(-) delete mode 100644 source/_layouts/zet.html.twig rename source/{_zets => _posts}/1.md (91%) rename source/{_zets => _posts}/10.md (91%) rename source/{_zets => _posts}/11.md (85%) rename source/{_zets => _posts}/12.md (84%) rename source/{_zets => _posts}/14.md (95%) rename source/{_zets => _posts}/15.md (93%) rename source/{_zets => _posts}/16.md (91%) rename source/{_zets => _posts}/17.md (79%) rename source/{_zets => _posts}/18.md (90%) rename source/{_zets => _posts}/19.md (60%) rename source/{_zets => _posts}/2.md (83%) rename source/{_zets => _posts}/20.md (91%) rename source/{_zets => _posts}/21.md (88%) rename source/{_zets => _posts}/22.md (89%) rename source/{_zets => _posts}/23.md (93%) rename source/{_zets => _posts}/24.md (66%) rename source/{_zets => _posts}/25.md (96%) rename source/{_zets => _posts}/26.md (90%) rename source/{_zets => _posts}/27.md (91%) rename source/{_zets => _posts}/28.md (92%) rename source/{_zets => _posts}/29.md (94%) rename source/{_zets => _posts}/3.md (95%) rename source/{_zets => _posts}/30.md (93%) rename source/{_zets => _posts}/31.md (90%) rename source/{_zets => _posts}/32.md (96%) rename source/{_zets => _posts}/4.md (89%) rename source/{_zets => _posts}/5.md (92%) rename source/{_zets => _posts}/6.md (91%) rename source/{_zets => _posts}/7.md (93%) rename source/{_zets => _posts}/8.md (92%) rename source/{_zets => _posts}/9.md (89%) delete mode 100644 source/_zets/13.md diff --git a/app/config/sculpin_kernel.yml b/app/config/sculpin_kernel.yml index 13a1b1ee0..3d76d67ee 100644 --- a/app/config/sculpin_kernel.yml +++ b/app/config/sculpin_kernel.yml @@ -8,8 +8,6 @@ sculpin_content_types: permalink: /blog/:basename/ presentations: permalink: /presentations/:basename/ - zets: - permalink: /zet/:basename-:title/ services: App\Experience\TwigExtension\ExperienceTwigExtension: diff --git a/source/_layouts/zet.html.twig b/source/_layouts/zet.html.twig deleted file mode 100644 index 54af394b0..000000000 --- a/source/_layouts/zet.html.twig +++ /dev/null @@ -1 +0,0 @@ -{% extends "page" %} diff --git a/source/_zets/1.md b/source/_posts/1.md similarity index 91% rename from source/_zets/1.md rename to source/_posts/1.md index 10f9d2631..58b4ae468 100644 --- a/source/_zets/1.md +++ b/source/_posts/1.md @@ -7,6 +7,8 @@ tags: - ARIA - Software Development - Web Development +note: true +permalink: /notes/1-ellipsis-in-pager-template-fails-accessibility-tests --- ```html diff --git a/source/_zets/10.md b/source/_posts/10.md similarity index 91% rename from source/_zets/10.md rename to source/_posts/10.md index 83fb50098..7400bb35e 100644 --- a/source/_zets/10.md +++ b/source/_posts/10.md @@ -2,6 +2,8 @@ title: git-instafix date: 2024-08-22 12:28:26 tags: [Software Developmemt, Git] +note: true +permalink: /notes/10-git-instafix --- [git instafix](https://github.com/quodlibetor/git-instafix) is a tool that allows you to easily amend (or fix) previous Git commits. diff --git a/source/_zets/11.md b/source/_posts/11.md similarity index 85% rename from source/_zets/11.md rename to source/_posts/11.md index fce3f07b6..be76b7ca1 100644 --- a/source/_zets/11.md +++ b/source/_posts/11.md @@ -2,6 +2,8 @@ title: Software Development Graduate website date: 2024-08-22 14:09:53 tags: [Sculpin, PHP, Transport for Wales] +note: true +permalink: /notes/11-software-development-graduate-website --- Shelley, the TfW Software Development Graduate, recently published [her own website](https://shell-web-dev.netlify.app) as her personal project to showcase the work she's been doing. diff --git a/source/_zets/12.md b/source/_posts/12.md similarity index 84% rename from source/_zets/12.md rename to source/_posts/12.md index 13da57f61..e7cefaf4e 100644 --- a/source/_zets/12.md +++ b/source/_posts/12.md @@ -2,6 +2,8 @@ title: The Gin admin theme date: 2024-08-22 14:22:56 tags: [Drupal] +note: true +permalink: /notes/12-the-gin-admin-theme --- Gin is a contrib admin theme for Drupal, and it has a dark mode. diff --git a/source/_zets/14.md b/source/_posts/14.md similarity index 95% rename from source/_zets/14.md rename to source/_posts/14.md index ad8dad4ef..5f6ed3bdd 100644 --- a/source/_zets/14.md +++ b/source/_posts/14.md @@ -2,6 +2,8 @@ title: "Abbreviations are better than aliases" date: 2024-08-25 01:02:35 tags: [Shell, zsh, Linux] +note: true +permalink: /notes/14-abbreviations-are-better-than-aliases --- Aliases are a way to shorten long or complicated commands or to easily add additional arguments when running commands. diff --git a/source/_zets/15.md b/source/_posts/15.md similarity index 93% rename from source/_zets/15.md rename to source/_posts/15.md index 3ff7ee776..8de2d91a8 100644 --- a/source/_zets/15.md +++ b/source/_posts/15.md @@ -2,6 +2,8 @@ title: "Data attributes and feature flags" date: 2024-08-26 21:34:15 tags: [Web Development, Software Development, Feature Flags, Drupal, CSS, PHP] +note: true +permalink: /notes/15-data-attributes-and-feature-flags --- I recently used the [Feature Toggle module](https://www.drupal.org/project/feature_toggle) to set a data attribute which enabled some new styling for buttons. diff --git a/source/_zets/16.md b/source/_posts/16.md similarity index 91% rename from source/_zets/16.md rename to source/_posts/16.md index 951ef5219..e9122b9af 100644 --- a/source/_zets/16.md +++ b/source/_posts/16.md @@ -5,6 +5,8 @@ tags: [Linux, Command-Line, curl] links: - https://stackoverflow.com/questions/7172784/how-do-i-post-json-data-with-curl - https://linuxize.com/post/curl-post-request +note: true +permalink: /notes/16-sending-post-requests-with-curl --- ```shell diff --git a/source/_zets/17.md b/source/_posts/17.md similarity index 79% rename from source/_zets/17.md rename to source/_posts/17.md index 47d014559..75dc058e9 100644 --- a/source/_zets/17.md +++ b/source/_posts/17.md @@ -4,6 +4,8 @@ date: 2024-08-27 20:21:17 tags: [Vim, Neovim, JSON, jq] links: - https://vi.stackexchange.com/a/19950 +note: true +permalink: /notes/17-format-json-file-in-vim --- Use `:%!jq` to format/beautify a JSON file within vim using `jq`. diff --git a/source/_zets/18.md b/source/_posts/18.md similarity index 90% rename from source/_zets/18.md rename to source/_posts/18.md index ce03fb2ac..35880f8ba 100644 --- a/source/_zets/18.md +++ b/source/_posts/18.md @@ -2,6 +2,8 @@ title: Using data attributes with Tailwind CSS date: 2024-08-27 23:39:23 tags: [HTML, CSS, Tailwind CSS] +note: true +permalink: /notes/18-using-data-attributes-with-tailwind-css --- Adam Wathan mentioned this in his "Tailwind CSS: It looks awful, and it works" at Rails World 2023. diff --git a/source/_zets/19.md b/source/_posts/19.md similarity index 60% rename from source/_zets/19.md rename to source/_posts/19.md index 59eeef238..351a00224 100644 --- a/source/_zets/19.md +++ b/source/_posts/19.md @@ -2,8 +2,11 @@ title: Merging activities in Strava date: 2024-08-30 12:52:35 tags: [Running] +note: true +permalink: /notes/19-merging-activities-in-strava --- -Activities with multiple entries can be exported from the Strave website as .gpx files and combined using websites like . +Activities with multiple entries can be exported from the Strave website as .gpx +files and combined using websites like . Then, the combined file can be re-uploaded to Strava as a single activity. diff --git a/source/_zets/2.md b/source/_posts/2.md similarity index 83% rename from source/_zets/2.md rename to source/_posts/2.md index 460e62e12..3401d3726 100644 --- a/source/_zets/2.md +++ b/source/_posts/2.md @@ -2,6 +2,8 @@ title: sshs date: 2024-08-21 18:17:29 tags: [Linux, SSH] +note: true +permalink: /notes/2-sshs --- A terminal user interface for SSH, based on your `~/.ssh/config` file. diff --git a/source/_zets/20.md b/source/_posts/20.md similarity index 91% rename from source/_zets/20.md rename to source/_posts/20.md index 5b9359ee1..aeec1093c 100644 --- a/source/_zets/20.md +++ b/source/_posts/20.md @@ -2,6 +2,8 @@ title: Sorting parameter arguments and array keys in Vim date: 2024-09-03 19:03:27 tags: [PHP, Vim, Software Development] +note: true +permalink: /notes/20-sorting-parameter-arguments-and-array-keys-in-vim --- Given this PHP code (for example): diff --git a/source/_zets/21.md b/source/_posts/21.md similarity index 88% rename from source/_zets/21.md rename to source/_posts/21.md index c9401a635..328587d84 100644 --- a/source/_zets/21.md +++ b/source/_posts/21.md @@ -2,6 +2,8 @@ title: Extracting a custom module with a Git subtree date: 2024-09-04 20:12:00 tags: [Git] +note: true +permalink: /notes/21-extracting-a-custom-module-with-a-git-subtree --- To extract a directory from a repository and keep the history, you can use the `git subtree split` command to create a new branch: diff --git a/source/_zets/22.md b/source/_posts/22.md similarity index 89% rename from source/_zets/22.md rename to source/_posts/22.md index b10c3332a..fbd9e41df 100644 --- a/source/_zets/22.md +++ b/source/_posts/22.md @@ -4,6 +4,8 @@ date: 2024-09-10 08:51:49 tags: [MariaDB, MySQL, Databases] links: - https://github.com/MariaDB/mariadb-docker/issues/467 +note: true +permalink: /notes/22-setting-maxallowedpacket-in-mariadb --- If you need to set `max_allowed_packet` for MariaDB, you can specify it in Docker Compose as a `command`. diff --git a/source/_zets/23.md b/source/_posts/23.md similarity index 93% rename from source/_zets/23.md rename to source/_posts/23.md index b0ea7ec34..5216cad13 100644 --- a/source/_zets/23.md +++ b/source/_posts/23.md @@ -4,6 +4,8 @@ date: 2024-09-10 22:35:41 tags: [Linux, Nix, NixOS] links: - https://discourse.nixos.org/t/error-unsupported-tarball-input-attribute-lastmodified/49435/4 +note: true +permalink: /notes/23-error-unsupported-tarball-input-attribute-lastmodified --- Yesterday, my laptop died and I needed to resurrect a spare laptop to work on. diff --git a/source/_zets/24.md b/source/_posts/24.md similarity index 66% rename from source/_zets/24.md rename to source/_posts/24.md index 16c2a9c02..a647b9637 100644 --- a/source/_zets/24.md +++ b/source/_posts/24.md @@ -4,10 +4,13 @@ date: 2024-09-14 13:39:01 tags: [Linux, curl] related: - Sending POST requests with curl -use: [zets] +note: true +permalink: /notes/24-posting-data-from-a-json-file --- -When sending JSON data in a POST request, instead of writing it inline with the `--data` or `--json` option, a filename can be entered - prefixed with an `@` symbol. +When sending JSON data in a POST request, instead of writing it inline with the +`--data` or `--json` option, a filename can be entered - prefixed with an `@` +symbol. For example, to POST the data from a data.json file: diff --git a/source/_zets/25.md b/source/_posts/25.md similarity index 96% rename from source/_zets/25.md rename to source/_posts/25.md index 09e0a593a..e1bd53a1a 100644 --- a/source/_zets/25.md +++ b/source/_posts/25.md @@ -7,6 +7,8 @@ links: - https://www.drupal.org/docs/develop/using-composer/using-drupals-lenient-composer-endpoint - https://github.com/mglaman/composer-drupal-lenient - https://github.com/cweagans/composer-patches +note: true +permalink: /notes/25-drupals-lenient-composer-endpoint --- Today, I tried to add the Content Access module to a Drupal 11 project, but there's no Drupal 11-compatible version. diff --git a/source/_zets/26.md b/source/_posts/26.md similarity index 90% rename from source/_zets/26.md rename to source/_posts/26.md index 1b169b720..52b6d9662 100644 --- a/source/_zets/26.md +++ b/source/_posts/26.md @@ -2,6 +2,8 @@ title: Should I learn React? date: 2024-09-25 19:33:28 tags: [React, JavaScript, Web Development] +note: true +permalink: /notes/26-should-i-learn-react --- I've usually used Vue.js or, more recently, Stimulus when I write JavaScript. diff --git a/source/_zets/27.md b/source/_posts/27.md similarity index 91% rename from source/_zets/27.md rename to source/_posts/27.md index cdae883b7..58a8b3a0d 100644 --- a/source/_zets/27.md +++ b/source/_posts/27.md @@ -7,6 +7,8 @@ links: - https://github.com/frctl/fractal/issues/1167 - https://storybook.js.org - https://www.drupal.org/project/storybook +note: true +permalink: /notes/27-todo-re-evaluate-storybook --- I've used Fractal a lot for the past several years to build design systems and component libraries for projects, but as the last commit was in January 2023 and there was an issue saying the maintainers were stepping back and the project is unmaintained, it may be time to look at something else. diff --git a/source/_zets/28.md b/source/_posts/28.md similarity index 92% rename from source/_zets/28.md rename to source/_posts/28.md index 97535619f..894881dc0 100644 --- a/source/_zets/28.md +++ b/source/_posts/28.md @@ -2,6 +2,8 @@ title: Excluding local files from Git date: 2024-11-07 10:10:19 tags: [git] +note: true +permalink: /notes/28-excluding-local-files-from-git --- As well as using a shared `.gitignore` file in a directory, I've had a convention of putting my own files I want to ignore in an `.ignored` directory and having that in a [global excludes file](https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreexcludesFile). diff --git a/source/_zets/29.md b/source/_posts/29.md similarity index 94% rename from source/_zets/29.md rename to source/_posts/29.md index ee69e09d7..e4a201a67 100644 --- a/source/_zets/29.md +++ b/source/_posts/29.md @@ -8,6 +8,8 @@ links: url: https://www.drupal.org/node/3522189 - text: This Blog Is No Longer on Drupal CMS, and That's a Good Thing url: https://joshuami.com/blog/2025/recipe-unpack-blog-no-longer-drupal-cms-and-thats-good-thing +note: true +permalink: /notes/29-drupal-recipe-unpacking --- Drupal now supports recipe unpacking. diff --git a/source/_zets/3.md b/source/_posts/3.md similarity index 95% rename from source/_zets/3.md rename to source/_posts/3.md index 41f5305f9..6136660ff 100644 --- a/source/_zets/3.md +++ b/source/_posts/3.md @@ -2,6 +2,8 @@ title: Writing bash scripts with Nix date: 2024-08-21 18:30:24 tags: [Bash, Linux, Nix] +note: true +permalink: /notes/3-writing-bash-scripts-with-nix --- - Variables, such as username, can be injected. diff --git a/source/_zets/30.md b/source/_posts/30.md similarity index 93% rename from source/_zets/30.md rename to source/_posts/30.md index 19c0b405f..449f1d68b 100644 --- a/source/_zets/30.md +++ b/source/_posts/30.md @@ -8,6 +8,8 @@ links: url: https://code.oliverdavies.uk/opdavies/nix-config/src/commit/a620888277654fa413d14413d0d2a4ce82d1ad56/packages/get-tags.nix - text: My count-tags script url: https://code.oliverdavies.uk/opdavies/nix-config/src/commit/a620888277654fa413d14413d0d2a4ce82d1ad56/packages/count-tags.nix +note: true +permalink: /notes/30-counting-tags --- To see all the tags in a repository, run `git tag`. diff --git a/source/_zets/31.md b/source/_posts/31.md similarity index 90% rename from source/_zets/31.md rename to source/_posts/31.md index ab7196de8..23195ae1e 100644 --- a/source/_zets/31.md +++ b/source/_posts/31.md @@ -3,6 +3,8 @@ title: Using Vim filters date: 2025-07-12 23:13:54 tags: - vim +note: true +permalink: /notes/31-using-vim-filters --- In Vim, insert some text into a file, such as `date`. diff --git a/source/_zets/32.md b/source/_posts/32.md similarity index 96% rename from source/_zets/32.md rename to source/_posts/32.md index 89d9beb75..46c96013e 100644 --- a/source/_zets/32.md +++ b/source/_posts/32.md @@ -4,6 +4,8 @@ date: 2025-07-12 23:25:52 tags: - drupal - php +note: true +permalink: /notes/32-drupal-bundle-classes --- By overridding a given bundle type: diff --git a/source/_zets/4.md b/source/_posts/4.md similarity index 89% rename from source/_zets/4.md rename to source/_posts/4.md index 39257c60d..4b22cd9f2 100644 --- a/source/_zets/4.md +++ b/source/_posts/4.md @@ -2,6 +2,8 @@ title: Drush now uses Laravel Prompts date: 2024-08-21 18:43:15 tags: [Drupal, Drush, Laravel, PHP] +note: true +permalink: /notes/4-drush-now-uses-laravel-prompts --- By Jess: diff --git a/source/_zets/5.md b/source/_posts/5.md similarity index 92% rename from source/_zets/5.md rename to source/_posts/5.md index ed3f0a709..fb6e5c57a 100644 --- a/source/_zets/5.md +++ b/source/_posts/5.md @@ -2,6 +2,8 @@ title: Using code snippets for effective live demos date: 2024-08-21 18:53:51 tags: [Vim, Neovim, Public Speaking, Laravel, PHP, Jenkins] +note: true +permalink: /notes/5-using-code-snippets-for-effective-live-demos --- [This tweet](https://x.com/DCoulbourne/status/1820068237226262810) mentions using code snippets whilst doing live demos to make them easier and less risky: diff --git a/source/_zets/6.md b/source/_posts/6.md similarity index 91% rename from source/_zets/6.md rename to source/_posts/6.md index 1ddc7c092..38e8b6417 100644 --- a/source/_zets/6.md +++ b/source/_posts/6.md @@ -2,6 +2,8 @@ title: Unveiling Laravel Prompts date: 2024-08-22 08:09:22 tags: [PHP, Laravel, Drush] +note: true +permalink: /notes/6-unveiling-laravel-prompts --- Now [Drush is using Laravel Prompts](../4), I should re-watch this video from Laracon US last year where Prompts was unveiled by Jess Archer: diff --git a/source/_zets/7.md b/source/_posts/7.md similarity index 93% rename from source/_zets/7.md rename to source/_posts/7.md index 3cf47906f..b4168b11d 100644 --- a/source/_zets/7.md +++ b/source/_posts/7.md @@ -2,6 +2,8 @@ title: Scaling personal projects date: 2024-08-22 09:00:00 tags: [PHPSW, Public Speaking, Software Development] +note: true +permalink: /notes/7-scaling-personal-projects --- Here are some quick notes from Ferdie De Oliveria's talk, "Scaling Personal Projects", at [PHP South West last week](https://www.meetup.com/php-sw/events/302521220): diff --git a/source/_zets/8.md b/source/_posts/8.md similarity index 92% rename from source/_zets/8.md rename to source/_posts/8.md index c9cd1fe7a..98588f43a 100644 --- a/source/_zets/8.md +++ b/source/_posts/8.md @@ -2,6 +2,8 @@ title: One of my earliest Tailwind CSS projects date: 2024-08-22 09:01:00 tags: [CSS, Tailwind CSS, PHPSW] +note: true +permalink: /notes/8-one-of-my-earliest-tailwind-css-projects --- [The PHPSW website](https://phpsw.uk) is one of the earliest Tailwind CSS projects I did, at least that I can remember. diff --git a/source/_zets/9.md b/source/_posts/9.md similarity index 89% rename from source/_zets/9.md rename to source/_posts/9.md index 3fcc96e9a..25ea62217 100644 --- a/source/_zets/9.md +++ b/source/_posts/9.md @@ -2,6 +2,8 @@ title: Git remotes can have more than one URL date: 2024-08-22 09:43:42 tags: [Software Development, Git] +note: true +permalink: /notes/9-git-remotes-can-have-more-than-one-url --- If you want to have multiple URLs for a single remote so `git push origin ...` will push to multiple remotes, such as GitHub and GitLab, or a personal repository and a client repository, you can do `git remote set-url --add origin `. diff --git a/source/_zets/13.md b/source/_zets/13.md deleted file mode 100644 index 9a699efcc..000000000 --- a/source/_zets/13.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: 'TODO: Try zellij as a potential tmux alternative' -date: 2024-08-23 16:52:06 -tags: [Linux, Shell, Zellij, tmux, Command-Line] ---- - -- --