From 007f8c0838fd8eef3b4d5319df5a9277e5c4b65d Mon Sep 17 00:00:00 2001 From: Adriano Caloiaro Date: Fri, 10 Apr 2026 05:59:11 -0600 Subject: [PATCH] feat(whereami): add weather summary to og:description --- layouts/custom/current_location.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layouts/custom/current_location.html b/layouts/custom/current_location.html index c3eb1bd..8607b9a 100644 --- a/layouts/custom/current_location.html +++ b/layouts/custom/current_location.html @@ -6,11 +6,19 @@ {{ else }} {{ with (. | transform.Unmarshal) }} {{ with .location.name }}{{ $title = printf "Adriano is in %s :: adriano.fyi" . }}{{ end }} + {{ with .weather }} + {{ $parts := slice }} + {{ with .tempf }}{{ $parts = $parts | append (printf "%.0f°F" .) }}{{ end }} + {{ with .humidity }}{{ $parts = $parts | append (printf "%.0f%% humidity" .) }}{{ end }} + {{ with .windspeedmph }}{{ $parts = $parts | append (printf "wind %.1f mph" .) }}{{ end }} + {{ $desc = delimit $parts ", " }} + {{ end }} {{ end }} {{ end }} {{ end }} {{ $title }} + {{ with $desc }}{{ end }} {{ end }}