Skip to content

Instantly share code, notes, and snippets.

@funkatron
Created March 21, 2011 20:52
Show Gist options
  • Select an option

  • Save funkatron/880199 to your computer and use it in GitHub Desktop.

Select an option

Save funkatron/880199 to your computer and use it in GitHub Desktop.
An EE template used to export post comments for use in a Jekyll blog
<?php
// for this to work, PHP must be enabled ON INPUT for the template
global $IN;
$IN->QSTR = '{embed:the_entry_id}'
?>
<div class="comments" data-entry-id="{embed:the_entry_id}" data-url-title="{embed:the_url_title}">
<ul>
{exp:comment:entries weblog="default_site" sort="asc"}
<li class="comment">
<a name="{comment_id}" class="comment-id anchor"></a>
<div class="comment-author">{name}</div>
<div class="comment-author-url">{url}</div>
<div class="comment-date">{comment_date format="%m/%d/%Y %h:%i:%s %A"}</div>
<div class="comment-body">{exp:markypants}{comment}{/exp:markypants}</div>
</li>
{/exp:comment:entries}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment