{{#gh-infinite-scroll-box tagName="section" classNames="content-list-content js-content-scrollbox" fetch="loadNextPage"}}
{{#each sortedPosts key="id" as |post|}}
{{#gh-posts-list-item post=post active=(is-equal post currentPost) click="showPostContent" onDoubleClick="openEditor" as |component|}}
{{#link-to "posts.post" post.id class="permalink" title="Edit this post"}}
{{post.title}}
{{component.authorName}}
{{#if component.isPublished}}
{{#if post.page}}
Page
{{else}}
{{/if}}
{{else}}
Draft
{{/if}}
{{/link-to}}
{{/gh-posts-list-item}}
{{/each}}
{{/gh-infinite-scroll-box}}