Only allow comments for .md files, this avoids silly things like comments for

loggin form pages, but will need to be improved to become more general.

Simplify some code a bit and cosmetic improvements.
This commit is contained in:
Uriel 2009-01-26 04:56:05 +01:00
parent 55d12e5dac
commit 219ec79f69
2 changed files with 4 additions and 9 deletions

View file

@ -2,8 +2,9 @@
% if(test -d $cdir) {
<hr /><h2>Comments</h2>
% for(c in `{ls $cdir/}) {
<div>By:
<div><b>By: <i>
% cat $c/user
</i></b>
<br />
% cat $c/body | escape_html | sed 's,$,<br />,'
<hr /></div>