Adding a comments section
This page has a comments section powered by maiko.
To add some comments, you'll first have to run a maiko instance (please read the tutorial for instructions). Note that comments lie outside the scope of ukiyoe's search function.
Once that's done, add the following line to your page template:
% include('comments.tpl', topic=metadata['topic'])
Configure the template
comments.tpl in the
ukiyoe/static/ directory. Basically, just make sure
are properly set. By default the values are:
% maiko_topic_path = '/tmp/maiko/topics/%s' % (topic,)
% maiko_topic_url = 'http://localhost:9393/%s#add_item' % (topic,)
http://localhost:9393/ to be
the proper path and URL, respectively.
Access the maiko forum and add a topic. If you don't want commenters
to make new topic (i.e. comment section) simply set
False. Remember that comments can be held for moderation and reviewed using
mmod.py script (see the tutorial).
Finally, add the following key pair to the
.uki article metadata headers:
##### is the topic number (if it's the first it'd be
That's it, you have a comments section.
Comments(click here to contribute, will open a new tab)
Comment #00000 by marco
A sample comment