forked from mpalmer/jekyll-static-comments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment_template.html
53 lines (53 loc) · 1.43 KB
/
comment_template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div id="comments">
{% case page.comment_count %}
{% when 0 %}
{% when 1 %}
<h1>1 Comment</h1>
{% else %}
<h1>{{page.comment_count}} Comments</h1>
{% endcase %}
{% for c in page.comments %}
<div class="comment {% cycle 'odd', 'even' %}">
<p class="comment_header">
From: {% if c.link and c.link != '' %}
<a href="{{c.link}}">{{c.name}}</a>
{% else %}
{{c.name}}
{% endif %}
<br />
<span class="comment_date">{{c.date}}</span>
</p>
<p>
{{c.comment | newline_to_br}}
</p>
</div>
{% endfor %}
<h1>Post a comment</h1>
<p style="font-style: italic">
All comments are held for moderation; basic HTML formatting accepted.
</p>
<form id="commentform" method="POST" action="{{site.url}}/commentsubmit.php">
<input type="hidden" name="post_id" value="{{page.id}}" />
<input type="hidden" name="return_url" value="{{site.url}}{{page.url}}" />
<table>
<tr>
<th>Name:</th>
<td><input type="text" size="25" name="name" /> (required)</td>
</tr>
<tr>
<th>E-mail:</th>
<td><input type="text" size="25" name="email" /> (required, not published)</td>
</tr>
<tr>
<th>Website:</th>
<td><input type="text" size="25" name="link" /> (optional)</td>
</tr>
<tr>
<td colspan="2"><textarea name="comment" rows="10" cols="60" ></textarea></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Submit Comment" /></td>
</tr>
</table>
</form>
</div>