From 0a3fd094a4920006993251d330f56b5fc99fd6ac Mon Sep 17 00:00:00 2001
From: Siya <857474407@qq.com>
Date: Tue, 24 Dec 2024 20:14:07 +0800
Subject: [PATCH] feat: add Bluesky comments support
---
layouts/_default/single.html | 6 ++++
layouts/partials/comments/bsky-comments.html | 29 ++++++++++++++++++++
2 files changed, 35 insertions(+)
create mode 100644 layouts/partials/comments/bsky-comments.html
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 5f300bf..2469c1b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -25,6 +25,12 @@
{{ define "main" }}
{{ partial "article/article.html" . }}
+
+ {{ with .Params.bsky_post }}
+ {{ if . }}
+ {{ partial "bsky-comments.html" . }}
+ {{ end }}
+ {{ end }}
{{ if .Params.links }}
{{ partial "article/components/links" . }}
diff --git a/layouts/partials/comments/bsky-comments.html b/layouts/partials/comments/bsky-comments.html
new file mode 100644
index 0000000..65d4d8e
--- /dev/null
+++ b/layouts/partials/comments/bsky-comments.html
@@ -0,0 +1,29 @@
+
+
+
+
+
\ No newline at end of file