diff options
| author | eltrac <hi@eltr.ac> | 2026-03-14 17:43:43 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-14 17:43:43 +0800 |
| commit | 10c5078627f2c4a6a27549a6da688b9c51420a7f (patch) | |
| tree | 9ad11ffe9555c29f117006f7722773a54e3da646 | |
| parent | 3cfe78392bb001d1dd81a184e8e083fb90eec656 (diff) | |
feat: new webmention reply style
| -rw-r--r-- | layouts/_partials/posts/webmention-replies.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/layouts/_partials/posts/webmention-replies.html b/layouts/_partials/posts/webmention-replies.html index 11beef06..d06c143f 100644 --- a/layouts/_partials/posts/webmention-replies.html +++ b/layouts/_partials/posts/webmention-replies.html @@ -5,7 +5,7 @@ {{ $author := index (index $reply "author") 0 }} {{ $author = index $author "properties" }} -<div class="b-1 b-solid b-neutral-200 dark:b-neutral-700 rd p-4 relative"> +<div class="relative"> <header class="flex justify-between items-start"> <div class="flex items-center gap-3"> <img src="{{ index $author.photo 0 }}" alt="Profile Picture" @@ -28,11 +28,14 @@ </div> </header> - <div class="markdown-body leading-relaxed px-2">{{ index (index $reply.content 0) "html" | safeHTML }}</div> + <div class="markdown-body leading-relaxed ml-3 pl-4 pr-2 b-l-4 b-l-solid b-neutral-200/50"> + {{ index (index $reply.content 0) "html" | safeHTML }} + {{ if strings.Contains .webmention.source "https://brid.gy" }} + <p class="text-xs text-right text-secondary">通过 <a href="https://brid.gy/" target="_blank">Bridgy</a> 发送自联邦宇宙</p> + {{ end }} + </div> + - {{ if strings.Contains .webmention.source "https://brid.gy" }} - <p class="text-xs text-right text-secondary">通过 <a href="https://brid.gy/" target="_blank">Bridgy</a> 发送自联邦宇宙</p> - {{ end }} </div> {{ end }} </section> |
