a picture my son drew of a wave on a beach

Pelican Comment ­System

Tagged with: #meta #pelican

As previously posted I have added commenting to my site. I used the methodically named Pelican Comment System by Bernhard Scheirle. Bernard seems to have abandoned the project but luckily for me it is still working. There was a couple of glitches I ran into…

An etching depicting a pigeon standing
Pigeon post, not as fast as a Pelican Comment

The first one was listed as an issue, a simple fix, amending get_writer to _get_writer on line 89 of ../site-packages/pelican_comment_system/init.py

The next glitch was actually just my own brain not getting it. If a comment is not a direct reply to a previous comment then replyto is not a required value. Seems obvious now. A comment is basically the same as the rest of the posts, just a file. This is the bare minumum that’s needed:

date: 2021-1-21 15:00
author: Norman
 
Content of the comment.

Other values that can be used are as follows:

tag description
email the commentators email address
replyto the id of the comment one is replying to
website any website address given will be used to wrap the commenters name in a link
slug the persistent uri of the comment, if not used it gets computed from the filename
χ Where the arbritary string χ is parsed to be available in the theme as {{comment.χ}}

To do

Other articles

Comments

Add a comment?

There are no comments yet.