blue-comments
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "blue-comments", | ||
"author": "aendra", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "dev": "vite dev", |
@@ -1,9 +0,22 @@ | ||
# BlueComments | ||
### Bluesky-based commenting system | ||
## Bluesky commenting system | ||
Heavily inspired by https://graysky.app/blog/2024-02-05-adding-blog-comments | ||
To use — | ||
## Quickstart | ||
You effectively need to set two variables, the DID and the RKEY. Drop the following into your page: | ||
``` | ||
const DID = 'did:plc:...'; // YOUR BSKY DID; see: internect.info | ||
const RKEY = '...'; // RKEY OF THE POST (the string after `/post/` in the URL) HERE | ||
import('https://esm.sh/blue-comments@^1'); | ||
var el = document.createElement('blue-comments'); | ||
el.setAttribute('uri', `at://${DID}/app.bsky.feed.post/${RKEY}`); | ||
document.body.appendChild(el); | ||
``` | ||
If using Ghost, in the post editing sidebar, use the "code injection" option to add the above | ||
to your footer. | ||
#### In your `<head>` section: | ||
@@ -10,0 +23,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1720215
35