Update the hyde template to support non-disqus comments.

This commit is contained in:
Brit Butler 2011-04-23 21:32:18 -04:00
parent 70eab4d181
commit 325bdfcb8d
2 changed files with 20 additions and 1 deletions

13
themes/hyde/comment.tmpl Normal file
View file

@ -0,0 +1,13 @@
{namespace coleslaw.theme.hyde}
{template comment}
<li id="{$comment.id}" class="comment">
<div class="comment-author">{$comment.author}</div><br>
<div class="comment-content">{$comment.content |noAutoescape}</div><br>
<div class="comment-meta">
<span class="comment-datetime">{$comment.timestamp}</span>
<span class="meta-sep">|</span>
<span class="comment-permalink"><a href="{$comment.url}">Permalink</a></span>
</div>
</li>
{/template}

View file

@ -18,6 +18,12 @@
{if $next} <a href="{$next}">Next</a><br> {/if}{\n} {if $next} <a href="{$next}">Next</a><br> {/if}{\n}
</div>{\n} </div>{\n}
{if $comments} {if $comments}
<div class="comments">{$comments |noAutoescape}</div> <div class="comments">
<h3 class="comment-header" id="numcomments">{length($comments)} comments</h3>
<ol id="comments" class="commentlist">
{foreach $comment in $comments}
{call comment data="$comment" /}{\n}
{/foreach}
</div>
{/if} {/if}
{/template} {/template}