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