Created
March 21, 2011 20:52
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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