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 }}