From 91b17ce12472ac1c6885e00575be1242b4cd1b5a Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 8 Nov 2022 11:44:21 +0300 Subject: templates: fix no space between links in mini entry --- kittybox-rs/templates/src/mf2.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kittybox-rs/templates/src') diff --git a/kittybox-rs/templates/src/mf2.rs b/kittybox-rs/templates/src/mf2.rs index 607c983..41cd6cc 100644 --- a/kittybox-rs/templates/src/mf2.rs +++ b/kittybox-rs/templates/src/mf2.rs @@ -9,8 +9,9 @@ fn decode_geo_uri(uri: &str) -> String { let mut parts = part.split(','); let lat = parts.next().unwrap(); let lon = parts.next().unwrap(); + // TODO - format them as proper latitude and longitude - return format!("{}, {}", lat, lon); + format!("{}, {}", lat, lon) } else { uri.to_string() } @@ -59,7 +60,7 @@ markup::define! { .unwrap_or_else(|| bookmarkof["properties"]["url"][0].as_str().unwrap()) } } - + " " a."u-url"."u-uid"[href=post["properties"]["uid"][0].as_str().unwrap()] { @if let Some(published) = post["properties"]["published"][0].as_str() { time."dt-published"[datetime=published] { -- cgit 1.4.1