Sup!

I'm tired boss... upcoming deprecations

I've been working on an update for my website theme to scratch a technical curiosity I was feeling related to authorship of individual posts in comparison to the entire site. After reading a couple resources, I decided to ask on the Hugo forums if there was an ideal way to add author information. I kept running into an issues and figured that it might be related to the version change.

Hugo deprecation warning
Warnings are future errors. A technical debt for waiting to come due.

Here are the warning messages if you want to read over them.

WARN  The "gist" shortcode was deprecated in v0.143.0 and will be removed in a future release. See https://gohugo.io/shortcodes/gist for instructions to create a replacement.
WARN  The "twitter", "tweet", and "twitter_simple" shortcodes were deprecated in v0.142.0 and will be removed in a future release. Please use the "x" shortcode instead

I have flashbacks of when I was working with another static site generator called Pelican that I enjoyed for many years until one day I did an update1 that took the site down because I had to find fixes for all the different components that weren’t working anymore.

On some levels, I understand that I don’t need to upgrade and that’s part of why I’m on my current hosting provider. The point of my blog is to communicate with the World Wide Web, get my thoughts together, and fulfill that part of me that likes to create. I feel that some of the things that I create for this blog are only used during the creation and never utilized afterwards.

What’s frustrating about these warnings are they are related to shortcodes built into Hugo itself. They are part of the documentation and examples that Hugo has to showcase what the project can do. I feel that it’s a real help when writing an article to avoid pasting the larger and larger code blocks used to embed something into a post. But with the changing technical and political landscapes, I can see why these changes are coming.

I’m sad.

Further bitrot.

I’ve already removed most if not all of the twitter links on my site and based on the last time I checked traffic, no one was reading it anyway. The gist changes are a little sadder for me because I was using them as reference in some of my favorite posts and I feel that people still read those.

But, I’m not updating the version today

The current version on the server is 0.117 and that’s been really solid. There is a version .140 that’s available but I wasn’t able to get it working.

Problem for stoot

I was able to take a code sample from Bryce last year and make it a plugin for Micro.blog users and I named it stoot after the shortcode that Bryce used for it. Unfortunately, it’s now giving me an error in my local environment.

The following is a truncated snippet of the error.

ERROR render of "/" failed: failed to render shortcode "stoot": failed to process shortcode: "/Users/mandaris/Code/local-hugo/themes/stoot/layouts/shortcodes/stoot.html:13:28": execute of template failed: template: _shortcodes/stoot.html:13:28: executing "_shortcodes/stoot.html" at <$urlToGet>: can't evaluate field Err in type resource.Resource
---
toot.html:13:28: executing "_shortcodes/stoot.html" at <$urlToGet>: can't evaluate field Err in type resource.Resource: Resource.Err was removed in Hugo v0.141.0 and replaced with a new try keyword, see https://gohugo.io/functions/go-template/try/

And yes, it did say toot.html even though it was from stoot.html. One problem at a time!!

The code in question:

{{- with resources.GetRemote $urlToGet  -}}
	{{ if (resources.GetRemote $urlToGet).Err }}

Next action(s)

I’ve decided that my next actions will be the following.

  1. Ignore the gist issue. It’s marked for a future release and there are directions on how to replace it. I have a about a handful of examples in my test suite of content (mostly the same code but on different pages)
  2. Learn how to keep multiple copies of Hugo local so that I can test this kind of thing easier.
  3. Learn how get replacement to work according to the error message.

  1. I took it for granted that a project would just work better after and upgrade; all reward and no consequences. You should not only backup your content but the environment. Look at how much work people maintain game emulators do in order to keep their backups running. ↩︎

Moonbound - ★★★★☆

Poster for Moonbound features a red sky with a tear revealing the moon.
A book so good, I forgot the world was burning

I heard about this book📚 on episode 757 of The Incomparable podcast. It seemed like a nice little distraction and was a nice little adventure.

The book description states that it’s part of a wider universe, but I feel the story is mostly self contained with an option to make it the start of a larger series. The author has even set up a webpage that contains information about the book. I especially like the Notes on influence section.

He even has a video on making the script for the novel.

So check it out if you want to do a little light reading.

Overview

Robin Sloan expands the Penumbraverse to new reaches of time and space in a rollicking far-future adventure. It is eleven thousand years from now. A lot has happened, and yet a lot is still very familiar. Ariel is a boy in a remote village under a wizard’s rule. Like many adventurers before him, Ariel is called to explore a world full of eye-popping discoveries and challenges: unknown enemies, a mission to rescue the world, a girl. Here, as they say, be dragons. But none of this happens before Ariel encounters an entity from an earlier civilization, a sentient, sensitive artificial intelligence with a special perspective on all of human history—who becomes both Ariel’s greatest ally . . . and our narrator. Moonbound is an adventure into the richest depths of Story itself from the creator of the Penumbraverse, Robin Sloan. It is a deeply satisfying epic of ancient scale, blasted through the imaginative prism of one of our most forward-thinking writers. And this is only the beginning.

Updates to the theme: Play-Lab

I’ve switched to another theme so that I could feel that I can make more drastic changes and customizations without worrying about effecting other people.

I’m calling this version 1.4.0 and would like to know what others think.

Key changes in this one are as follows:

  • Change the font to Atkinson Hyperlegible
  • Make the index only show the posts with titles
  • Attempt to remove h-feed from single pages
  • Correct header values on archive page
  • Add view-transition to meta tag in header
  • Change default OpenGraph image to not have words
  • Remove border and filter around <figure>
  • Add margin-top and change line-height on <figcaption>

I’ve got two other major changes that I’m still working on. Really highlights why you should do branching for both personal and professional projects.

Upcoming projects

  • Author page
  • Share buttons using the webshare api
  • Changes to stoot due to Hugo method deprecation

Nevada Union High School. 📍

About to see some kids running track.

Race track in the morning. In the background a cellphone tower disguised as a tree.

I’m dislike becoming more and more cynical.

The morning was pretty nice.

A tree with the sky in the background

Atkinson Hyperlegible Font - Braille Institute

My next design tweak will be to start using the Atkinson Hyperlegible Font for this site.

At Braille Institute, we’ve created a family of hyperlegible™ fonts designed to improve legibility and readability for individuals with low vision. These carefully crafted fonts feature clear, highly distinctive letters and numbers that make reading easier and more accessible.

I’ll probably serve it directly from the site instead of linking it from google or adobe.

Did the CSS naked day and it’s a little weird to see how large some of the assets I’m using are.

Thanks to @Archimage for letting me know that it’s draw a picture of a bird day.

A hand-drawn bird with green feathers, yellow feet, a pink crest, and a yellow beak on dotted paper.

I took this photo this morning. It was just me attempting to capture a still moment before the day begins.

A tree in front of the sunrise.