about summary refs log tree commit diff
path: root/kittybox-rs/templates/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-02-27 00:07:51 +0300
committerVika <vika@fireburn.ru>2023-02-27 00:07:51 +0300
commiteb58228abf97ebca4ebe18d7803cbc2ca4c5df40 (patch)
tree5fbbefa0a317f01453b87068abab3fd7e17429ea /kittybox-rs/templates/src
parentf8db76548c9fb15474ffa9cf0f545bd35191d73a (diff)
downloadkittybox-eb58228abf97ebca4ebe18d7803cbc2ca4c5df40.tar.zst
Clarity improvements
Diffstat (limited to 'kittybox-rs/templates/src')
-rw-r--r--kittybox-rs/templates/src/mf2.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/kittybox-rs/templates/src/mf2.rs b/kittybox-rs/templates/src/mf2.rs
index 022a206..eaac621 100644
--- a/kittybox-rs/templates/src/mf2.rs
+++ b/kittybox-rs/templates/src/mf2.rs
@@ -383,6 +383,9 @@ markup::define! {
     }
     WebInteractions<'a>(post: &'a serde_json::Value) {
         footer.webinteractions {
+            p[style="display: none", "aria-hidden"="false"] {
+                "Webmention counters:"
+            }
             ul.counters {
                 li {
                     span."icon like-icon"["aria-label"="likes"] {
@@ -393,15 +396,15 @@ markup::define! {
                     span.counter { @post["properties"]["like"].as_array().map(|a| a.len()).unwrap_or(0) }
                 }
                 li {
-                    span.icon { "💬" }
+                    span.icon["aria-label"="replies"] { "💬" }
                     span.counter { @post["properties"]["comment"].as_array().map(|a| a.len()).unwrap_or(0) }
                 }
                 li {
-                    span.icon { "🔄" }
+                    span.icon["aria-label"="reposts"] { "🔄" }
                     span.counter { @post["properties"]["repost"].as_array().map(|a| a.len()).unwrap_or(0) }
                 }
                 li {
-                    span.icon { "🔖" }
+                    span.icon["aria-label"="bookmarks"] { "🔖" }
                     span.counter { @post["properties"]["bookmark"].as_array().map(|a| a.len()).unwrap_or(0) }
                 }
             }