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:
parent
55d12e5dac
commit
219ec79f69
2 changed files with 4 additions and 9 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue