Check if a static site is moved correctly

The lazy person’s guide to confirming that a move to a static site worked. Overview: Download all relevant URLs from Search Console Convert download to a URL list Check for http to https redirects Check for valid final URLs Download all relevant URLs I’m picking one approximate source of truth - the URLs that received impressions in Google Search. This list doesn’t need to be comprehensive, just something more than I’d manually pick.

Check if a static site is moved correctly »

Extending Spotify's web volume slider

Having to choose between “too loud” and “too quiet” sucks. Unfortunately the Spotify web UI has an annoyingly short volume slider. Fortunately that’s easy to fix with a bookmarklet. Before: After: Drag this bookmarklet to your browser bookmark bar, and click on it to expand the volume slider. The code is pretty straightforward, it just changes the CSS slightly. Spotify volume Here’s the code in more understandable JavaScript:

Extending Spotify's web volume slider »

Nofollow with a bounce-URL

This is a simple (“simple” hah, it’s pretty complex for a simple annotation) implementation of a bounce URL for adding rel=nofollow support to a static HTML site. (More on other nofollow approaches) Overview We’ll modify 3 things: Add a /nofollow/ URL which redirects as appropriate Add the /nofollow/ URL to the site’s robots.txt. Modify the render-link.html code to swap in the rel=nofollow Passing mechanism: We’ll use URL anchors (/folder/page#anchor) to pass the destination URL.

Nofollow with a bounce-URL »

Nofollow strategies for markdown sites

I touched on nofollow for Hugo-sites recently, but thinking about it a bit more, I wonder if it needs some kinda of failsafe setup. What happens if Hugo stops injecting the link parser? What happens if I move to a different setup and forget the link processor? What happens if … (insert paranoia here) The goal of nofollow links is to avoid having search engines use them, but still to allow users to use them.

Nofollow strategies for markdown sites »

Mirroring a website for use on static hosting

If you’ve been following along, or probably not, since none of this is live yet, I’ve been moving some of my random old sites over to static hosting to simplify life. Static hosting doesn’t solve everything, and doesn’t protect your cheese, but it’s cheap & carefree (at least, until your hoster deprecates their static hosting). Finding new places to put static hosting is pretty straightforward too. I use Firebase static hosting for this site at the moment, that’s what this post covers.

Mirroring a website for use on static hosting »

Simple site-search for Hugo, using Google

Want a simple search functionality for your Hugo site? Here’s the setup I used here. It uses the Google search advanced query operators (which you can get if you go to Tools / Advanced Search) to add the site as a separate parameter. as_q = the query you want as_sitesearch = the site you want to search in It opens up in a separate window, if you’re ok with that.

Simple site-search for Hugo, using Google »

Some design decisions on this site, SEO and otherwise

Mostly a random collection of decisions I made when revamping this site. I’ll try to update this over time as I make new calls. Hosting Post in markdown. This is mostly for comfort, it’s easier than writing HTML. Minimal CMS. I use Hugo as a static site generator. I thought static site generators would be easy; I was wrong. Hugo uses Go and a bunch of libraries, I can’t install all of it on my company laptop (without disabling some security features, which otherwise seem like a good idea).

Some design decisions on this site, SEO and otherwise »

Converting WordPress and Plog to markdown

Converting HTML to markdown for Hugo isn’t super-complicated, it’s just a bit annoying if you have to do it for a bunch of individual posts. There are a few options documented. (Image to see if SVGs work here. I guess they do.) Wordpress I didn’t want to install new plugins on my aging WordPress installations, so I went for the Python setup ExitWP-for-Hugo. It takes the exported XML file from WordPress and churns out a bunch of .

Converting WordPress and Plog to markdown »

Adding archive.org links to old posts in Hugo

Since there’s so much old content here, I thought I’d add links to archive.org in links in older posts. At least this way people have a chance to see what might have been there earlier. Following adding nofollow in hugo I added the following to the render-link.html file: {{- if strings.HasPrefix $linkurl "http" }} {{- if gt (sub now.Year .Page.Date.Year) 5 }} (<a href="https://web.archive.org/web/{{ .Page.Date.Year }}*/{{ $linkurl }}" {{- with $relval}} rel="{{ trim .

Adding archive.org links to old posts in Hugo »