on 1118968 help sign in
urbit.org/docs/using/web/comments.md
41 lines 1.2 kB history raw
1---
2navhome: '/docs/'
3next: True
4sort: 2
5title: Blog comments
6---
8# Blog comments
10If you followed [our previous example](./blog) you should have a simple blog
11accessible at `your-urbit.urbit.org/blog`. Here we'll enable comments on a post.
13First, turn comments on by editing the YAML in `post-1.md`. Your YAML should
14look 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`. You should
25see a comments box at the bottom of the page.
27Try posting a comment! When you do you should see the following in your console:
29 + /~your-urbit/home/55/web/blog/post-1/comments/~2016.4.20..23.20.54..0b88/md
30 ------------[0]
31 ~your-urbit[tree]: receiving comments, ;join %comments for details
33Comments are written into the filesystem in the `comments/` folder relative to
34the page they're enabled on. When a new comment is posted a notification is also
35posted to the `/comments` `:talk` channel.
37Use `;join` to keep up with comments as they get posted:
39 ;join ~your-urbit/comments
41That's it! Easy.