From 6de14d1255a2417fd1fc15537d80f77ee4f7dd23 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Mon, 5 Feb 2024 10:13:03 -0500 Subject: [PATCH] Fix a few broken images --- .../index.md | 4 ++-- .../making-an-email-powered-e-paper-picture-frame/index.md | 6 +++--- .../whats-in-a-word-building-a-verbose-party-game/index.md | 5 ++--- content/journal/encrypt-and-dither-photos-in-hugo/index.md | 6 +++++- themes/v2/layouts/shortcodes/dither_url.html | 5 +++++ 5 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 themes/v2/layouts/shortcodes/dither_url.html diff --git a/content/elsewhere/email-photos-to-an-s3-bucket-with-aws-lambda-with-cropping-in-ruby/index.md b/content/elsewhere/email-photos-to-an-s3-bucket-with-aws-lambda-with-cropping-in-ruby/index.md index 003199a..2cebb68 100644 --- a/content/elsewhere/email-photos-to-an-s3-bucket-with-aws-lambda-with-cropping-in-ruby/index.md +++ b/content/elsewhere/email-photos-to-an-s3-bucket-with-aws-lambda-with-cropping-in-ruby/index.md @@ -211,8 +211,8 @@ In closing, this project was a great way to get familiar with Lambda and the wider AWS ecosystem. It came together in just a few hours and is still going strong several months later. My typical bill is something on the order of $0.50 per month. If anything goes wrong, I can pop into -CloudWatch to view the result of the function, but so far, [so -smooth](smooth-yoda.jpg). +CloudWatch to view the result of the function, but so far, +[so smooth]({{}}). I'll be back in a few weeks detailing the rest of the project. Stay tuned! diff --git a/content/elsewhere/making-an-email-powered-e-paper-picture-frame/index.md b/content/elsewhere/making-an-email-powered-e-paper-picture-frame/index.md index 6f3e5f2..1d7310b 100644 --- a/content/elsewhere/making-an-email-powered-e-paper-picture-frame/index.md +++ b/content/elsewhere/making-an-email-powered-e-paper-picture-frame/index.md @@ -13,7 +13,7 @@ e-paper picture frames for my family, and I thought it'd be cool to walk through the process in case someone out there wants to try something similar. -![image](IMG_0120.jpeg) +{{}} In short, it's a Raspberry Pi Zero connected to a roughly 5-by-7-inch e-paper screen, running some software I wrote in Go and living inside a @@ -51,7 +51,7 @@ extracts the attachments from the email, crops them a couple of ways (one for display on a webpage, the other for display on the screen), and uploads the results into an S3 bucket. -![image](Screen_Shot_2021-05-09_at_1_26_39_PM.png) +{{}} ## The Software @@ -147,7 +147,7 @@ And that should be it. The photo gallery should be accessible at a local IP and the photo should update hourly (though not ON the hour as that's not how `cron.hourly` works for some reason). -![image](IMG_0122.jpeg) +{{}} ## Building the Frame diff --git a/content/elsewhere/whats-in-a-word-building-a-verbose-party-game/index.md b/content/elsewhere/whats-in-a-word-building-a-verbose-party-game/index.md index f17391f..4bd05bf 100644 --- a/content/elsewhere/whats-in-a-word-building-a-verbose-party-game/index.md +++ b/content/elsewhere/whats-in-a-word-building-a-verbose-party-game/index.md @@ -32,7 +32,7 @@ It's easier to play than explain, so mosey on over to to know more about how each of us fared going heads down on one project for 48 hours (and counting), read on. -![image](662shots_so-1.png) +{{}} ## [**Haley**](https://www.viget.com/about/team/hjohnson/) **\| Pointless Role: Design \| Day Job: PM** @@ -141,8 +141,7 @@ automatically sets up HTTPS and proxies traffic to our Remix app: Our overall architecture (running with `docker compose`) looks like this: -![image](verbose-arch.png) - +{{}} ------------------------------------------------------------------------ diff --git a/content/journal/encrypt-and-dither-photos-in-hugo/index.md b/content/journal/encrypt-and-dither-photos-in-hugo/index.md index 1a6eb26..102361a 100644 --- a/content/journal/encrypt-and-dither-photos-in-hugo/index.md +++ b/content/journal/encrypt-and-dither-photos-in-hugo/index.md @@ -1,7 +1,7 @@ --- title: "Encrypt and Dither Photos in Hugo" date: 2024-02-05T09:47:45-05:00 -draft: false +draft: true references: - title: "Elliot Jay Stocks | 2023 in review" url: https://elliotjaystocks.com/blog/2023-in-review @@ -21,6 +21,10 @@ references: file: solar-lowtechmagazine-com-vj7kk5.txt --- +Intro text here ... + + + * https://github.com/gohugoio/hugo/issues/8598 A more ambitions version of me would take a crack at adding this functionality to Hugo and opening a PR. diff --git a/themes/v2/layouts/shortcodes/dither_url.html b/themes/v2/layouts/shortcodes/dither_url.html new file mode 100644 index 0000000..0d52eda --- /dev/null +++ b/themes/v2/layouts/shortcodes/dither_url.html @@ -0,0 +1,5 @@ +{{ $file := printf "%s%s" .Page.RelPermalink (.Get 0) }} +{{ $geo := .Get 1 }} +{{ $img := resources.GetRemote (printf "%s%s?geo=%s" (getenv "DITHER_SERVER") $file $geo) }} + +{{ $img.RelPermalink }}