Is it the time to add a search functionality?

Running the following query on the /blog/ section shows me that this blog currently has 64 posts (including this one):

document
  .querySelector(".page-list")
  .children
  .length;
// 64

The number by itself is not that impressive, but I usually use my own blog as a reference or as documentation and it would be nice to have some kind of search functionality outside of a GNU Emacs instance.

Given that this website is generated with Hugo, the search should also be static and not depend on a particular service. I found out that the most used tools for this requirements are PageFind and lunr.

The downside here being that it would introduce a rather large JavaScript file on some pages… Which might be worth it? Well, this is something I’ll have to decide until the 100th post.



Articles from blogs I follow around the net

Trimming a Fake Object

A refactoring example. When I introduce the Fake Object testing pattern to people, a common concern is the maintenance burden of it. The point of the pattern is that you write some 'working' code only for test purposes. …

via ploeh blog November 20, 2023

Building a digital vigil for those we've lost

This post is hard to write in a lot of ways. It's more personal than most I've written. This is presumptively a tech blog, and this piece is about so much more than technology. But it's important. Making things, software or otherwise, is ultimatel…

via ntietz.com blog November 19, 2023

#122 Experimenting and Learning

Update on what happened across the GNOME project in the week from November 10 to November 17. GNOME Circle Apps and Libraries Workbench A sandbox to learn and prototype with GNOME technologies. Sonny says Workbench is a code playground and Library to learn, e…

via This Week in GNOME November 17, 2023

Generated by openring