Add comments feed template

This commit is contained in:
2022-10-08 08:52:47 -04:00
parent 4984ac3383
commit 3de4476a3f
3 changed files with 64 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ Subscribe to the comments <a href="https://www.hackerpublicradio.org/comments_rs
</p>
<!--% query_comments = DBI.prepare('
SELECT
id,
comment_timestamp,
comment_author_name,
comment_title,
@@ -99,7 +100,7 @@ Subscribe to the comments <a href="https://www.hackerpublicradio.org/comments_rs
<!--% comment_index = 1 %-->
<!--% comments_result = query_comments.execute(id) %-->
<!--% FOREACH comment IN comments_result %-->
<h5 id="1">Comment #<!--% comment_index %--> posted on <!--% comment.comment_timestamp %--> by <!--% comment.comment_author_name %--></h5>
<h5 id="comment_<!--% comment.id %-->">Comment #<!--% comment_index %--> posted on <!--% comment.comment_timestamp %--> by <!--% comment.comment_author_name %--></h5>
<h4><!--% comment.comment_title %--></h4>
<!--% comment.comment_text %-->
<!--% comment_index = comment_index + 1 %-->