about summary refs log tree commit diff
path: root/kittybox-rs/templates/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-01-22 07:26:34 +0300
committerVika <vika@fireburn.ru>2023-01-22 07:26:34 +0300
commita5b58386ce158928a6697ab8179c0a7a773e472d (patch)
treebb3284891b1ee4a6e1db2ac7213cc3dc93a5a9cc /kittybox-rs/templates/src
parent1b5c3442744ae34e5bf3966ddf433bdebab834fd (diff)
downloadkittybox-a5b58386ce158928a6697ab8179c0a7a773e472d.tar.zst
Add rainbow hearts on like posts
A cute little easter-egg from an old version of my site, now available
all year round, because I'm sick of hiding my true self.
Diffstat (limited to 'kittybox-rs/templates/src')
-rw-r--r--kittybox-rs/templates/src/mf2.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/kittybox-rs/templates/src/mf2.rs b/kittybox-rs/templates/src/mf2.rs
index 67d1f87..fd7eb1e 100644
--- a/kittybox-rs/templates/src/mf2.rs
+++ b/kittybox-rs/templates/src/mf2.rs
@@ -41,7 +41,13 @@ markup::define! {
                     }
                 }
                 @if let Some(likeof) = post["properties"]["like-of"][0].as_str() {
-                    " ❤️ "
+                    " "
+                    span."like-icon"["aria-label"="liked"] {
+                        span."like-icon-label"["aria-hidden"="true"] {
+                            "❤️"
+                        }
+                    }
+                    " "
                     a."u-like-of"[href=likeof] { @likeof }
                 } else if let Some(likeof) = post["properties"]["like-of"][0].as_object() {
                     a."u-like-of"[href=likeof["properties"]["url"][0].as_str().unwrap()] {