From 918a6fd59fd6cfa5f66d0d91b6e0058ae506eb11 Mon Sep 17 00:00:00 2001 From: Malted Date: Thu, 4 Apr 2024 11:12:02 -0400 Subject: [PATCH] Clarify location on map --- Cargo.lock | 4 ++-- src/content/content.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1dbe7f9..49dfdee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -689,9 +689,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.22" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d6250322ef6e60f93f9a2162799302cd6f68f79f6e5d85c8c16f14d1d958178" +checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" dependencies = [ "bytes", "fnv", diff --git a/src/content/content.rs b/src/content/content.rs index 420c9f2..7482dce 100644 --- a/src/content/content.rs +++ b/src/content/content.rs @@ -23,8 +23,8 @@ fn img( let s = malted_state.read(); - let query = if s.city.trim().is_empty() || s.country.trim().is_empty() { - String::from("burlington,vt") + let query = if s.city.trim().is_empty() || s.country.trim().is_empty() || s.city.trim().to_lowercase() == "burlington" { + String::from("burlington,vermont,usa") } else { format!("{},{}", s.city, s.country) };