diff --git a/docs/docs/pages/comments.mdx b/docs/docs/pages/comments.mdx index f916663..4ee92c7 100644 --- a/docs/docs/pages/comments.mdx +++ b/docs/docs/pages/comments.mdx @@ -1,10 +1,10 @@ # Comments -Sequoia has a small UI trick up its sleve that lets you easily display comments on your blog posts through Bluesky posts. This is the general flow: +Sequoia has a small UI trick up its sleeve that lets you easily display comments on your blog posts through Bluesky posts. This is the general flow: -1. Setup your blog with `sequoia init`, and when prompted at the end to enable BlueSky posts, select `yes`. -2. When you run `sequoia pubish` the CLI will publish a BlueSky post and link it to your `site.standard.document` record for your post. -3. As people reply to the BlueSky post, the replies can be rendered as comments below your post using the Sequoia UI web component. +1. Setup your blog with `sequoia init`, and when prompted at the end to enable BlueSky posts, select `yes`. +2. When you run `sequoia publish` the CLI will publish a BlueSky post and link it to your `site.standard.document` record for your post. +3. As people reply to the BlueSky post, the replies can be rendered as comments below your post using the Sequoia UI web component. ## Setup @@ -14,26 +14,122 @@ Run the following command in your project to install the comments web component. sequoia add sequoia-comments ``` -Then in your HTML or blog post template, import the component with a script tag or module import. +The web component will look for the `` in your HTML head, then using the `atUri` fetch the post and the replies. -```html +::::tip +For more information on the `` tags, check out the [verification guide](/verifying) +:::: + +## Usage + +Since `sequoia-comments` is a standard Web Component, it works with any framework. Choose your setup below: + +:::code-group + +```html [HTML]