on 25d0b41 help sign in
urbit.org/docs/using/web/comments.md
43 lines 1.2 kB history raw
1---
2navhome: /docs/
3sort: 2
4title: Blog comments
5next: true
6---
8# Blog comments
10If you followed [our previous example](./blog) you should have a
11simple blog accessible at `your-urbit.urbit.org/blog`. Here we'll
12enable comments on a post.
14First, turn comments on by editing the YAML in `post-1.md`. Your YAML
15should look like this:
17 ---
18 date: ~2016.4.20
19 title: My first post!
20 type: post
21 navhome: /blog
22 comments: true
23 ---
25Now try loading your post here: `your-urbit.urbit.org/blog/post-1`.
26You should see a comments box at the bottom of the page.
28Try posting a comment! When you do you should see the following in
29your console:
31 + /~your-urbit/home/55/web/blog/post-1/comments/~2016.4.20..23.20.54..0b88/md
32 ------------[0]
33 ~your-urbit[tree]: receiving comments, ;join %comments for details
35Comments are written into the filesystem in the `comments/` folder
36relative to the page they're enabled on. When a new comment is posted
37a notification is also posted to the `/comments` `:talk` channel.
39Use `;join` to keep up with comments as they get posted:
41 ;join ~your-urbit/comments
43That's it! Easy.