Update the hyde template to support non-disqus comments.
This commit is contained in:
parent
70eab4d181
commit
325bdfcb8d
2 changed files with 20 additions and 1 deletions
13
themes/hyde/comment.tmpl
Normal file
13
themes/hyde/comment.tmpl
Normal 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}
|
|
@ -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}
|
||||||
|
|
Loading…
Add table
Reference in a new issue