nicholas.cloud

Disappearing Blog Posts

2020-09-25 // 4 min read // #hugo

Update:

I’ve brought this disappearing post back from the abyss, enjoy!

That’s right, there’s self-destructing blog posts now

I’ve been toying with the idea of writing expiring blog posts for a while now, ever since discovering the expiryDate variable in Hugo.

Being able to have temporary posts that get cleaned up after a period of time seems like an interesting challenge and a nice convenience. For example, if I want to blog a short-term update that gets taken down once it’s no longer relevant.

While this is easy in a dynamic site (currentDate > expiryDate), it’s something that static sites struggle with. If a site’s content changes over time, a static site must be updated with each change. I know I’m certainly not going to remember to redeploy my site weeks after publishing a temporary post!

With scheduled builds and a little extra configuration though, I’ve managed to automate my troubles away!

Read more →

Simple Static Sites

My setup for building and deploying a personal website

2017-05-29 // 6 min read // #webdev #hugo

Personal websites! Everyone wants to have one, but nobody wants to go through the bother of maintaining, updating them, and fixing them. I thought I’d go through my personal setup, and show how I build and deploy my own site.

Read more →