From b6aea10aeed4e900d9dc0424fd7c43516ece2f08 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Sat, 31 Jan 2026 11:05:05 +0800 Subject: refactor: separate fediverse form and webmention form into partials --- layouts/_partials/posts/fediverse-form.html | 36 +++++++++++++++++++++ layouts/_partials/posts/webmention-form.html | 6 ++++ layouts/_partials/posts/webmention-likes.html | 45 ++------------------------- 3 files changed, 45 insertions(+), 42 deletions(-) create mode 100644 layouts/_partials/posts/fediverse-form.html create mode 100644 layouts/_partials/posts/webmention-form.html diff --git a/layouts/_partials/posts/fediverse-form.html b/layouts/_partials/posts/fediverse-form.html new file mode 100644 index 00000000..76072cf5 --- /dev/null +++ b/layouts/_partials/posts/fediverse-form.html @@ -0,0 +1,36 @@ +
+

Fediverse

+ {{ with .Params.toot }} + + + {{ else }} +

No toot available

+ + + {{ end }} +
+ + diff --git a/layouts/_partials/posts/webmention-form.html b/layouts/_partials/posts/webmention-form.html new file mode 100644 index 00000000..d55e8d58 --- /dev/null +++ b/layouts/_partials/posts/webmention-form.html @@ -0,0 +1,6 @@ +
+

Webmention

+ + + +
diff --git a/layouts/_partials/posts/webmention-likes.html b/layouts/_partials/posts/webmention-likes.html index 4621ab47..e77b3253 100644 --- a/layouts/_partials/posts/webmention-likes.html +++ b/layouts/_partials/posts/webmention-likes.html @@ -7,27 +7,10 @@
+
-