diff options
author | Vika <vika@fireburn.ru> | 2022-11-08 11:44:21 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-11-08 11:44:21 +0300 |
commit | 91b17ce12472ac1c6885e00575be1242b4cd1b5a (patch) | |
tree | e3fb7054f4feeac45d8c44d4d9163b1e43974560 /kittybox-rs/templates | |
parent | a3d354fc5f5f3dc7249d24498973259738bae83a (diff) | |
download | kittybox-91b17ce12472ac1c6885e00575be1242b4cd1b5a.tar.zst |
templates: fix no space between links in mini entry
Diffstat (limited to 'kittybox-rs/templates')
-rw-r--r-- | kittybox-rs/templates/src/mf2.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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] { |