Site Updates

Site Updates

I've read a lot about how blogging can be helpful to one's career, as well as enjoyable in and of itself. I have no idea who's reading this because I don't have Google Analytics on here or any other analytics (Website Privacy Report). I did just add web mentions using webmention.io so I guess there is some tracking, but that's only for users who explicitly reference my content, or I reference theirs.

Also, I've been wanting my own quick-notes reference for a while. This would mostly be quick and dirty TIL type content or various this is how you configure-setup-provision thus and so. I think of it as Articles are things I'm writing with the intention of sharing (whether anyone reads it or not) and Notes are things I'm writing for my own reference (whether anyone else reads them or not). There might be a kind of shortcut, postbin-style thing I could add, but that would involve interacting with GitHub so I can make sure I don't lose the content. I'll think about it.

Since this little blog engine of mine is a Hugo lite engine of sorts, I realized that I should stop tracking the /public directory since it can be rebuilt at any time as long as I have the source .md files. People say that RSS is dead and, at the same time, is making a comeback, so I added RSS feeds for articles and notes (which you'll see at the top). That site-nav at the top is new as well.

For a while I was just making images from ChatGPT and putting the PNGs as hero images at the top of the articles. That worked fine but those images are huge, so as part of the deploy process now I convert all .png, .jpg, and other image files to .webp using cwebp. That really helps a lot with image size. For example:

hero_article_1.webp: 658KB → 22KB (96%)

I ran my site through a website grader and saw I need to set expiration headers and use gzip. Done & done.

Webmentions are an interesting way to see who is referencing your content (as mentioned before). It wasn't the easiest thing to set up and test, but I'm pretty sure I have it configured properly now. I was able to send a test mention and a mention from my site to my site on this article. I hope it's a way to help foster the spirit of the internet communities of yore.

Lastly, Claude Code was very helpful in getting this set up. Being able to talk to code and GitHub is a real game changer for development. This little bullet list at the end is the output of the prompt:

okay, look at all the commits on main for today and let me know what features we implemented.

give me a markdown list of these items, oldest to newest.
  1. Add Notes section for quick reference snippets with datetime sorting and source field
  2. Add top nav, untrack public/ from git
  3. Add RSS feeds for posts and notes with autodiscovery links
  4. Add WebP image conversion during deploy with per-file compression stats
  5. Add Expires header and more cacheable file types
  6. Add gzip compression for HTML, CSS, JS, and text files
  7. Add webmentions support with facepile display
  8. Add webmention.app sending for posts and notes feeds
  9. Add h-entry microformat markup and h-card with author photo
  10. Move nav bar above title on article and note page

AI Disclaimer: I used chatGPT to make spelling and minor grammar updates. I also used chatGPT to create the image for this post.

Mentions