Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[FIX] add basic latest post template

  • Loading branch information...
commit 9dbd643f3b0a3e82e6cb42773ac8f2fc7ff6e3c5 1 parent 6c32254
@fnagel authored
Showing with 11 additions and 5 deletions.
  1. +11 −5 Resources/Private/Templates/Post/Latest.html
View
16 Resources/Private/Templates/Post/Latest.html
@@ -2,13 +2,19 @@
<f:section name="main">
- <f:render partial="Post/Filter" arguments="{category: category, tag: tag}" />
+ <f:render partial="Post/Filter" arguments="{category: category, tag: tag}" />
- <f:if condition="{comments}">
- <f:widget.paginate objects="{comments}" as="paginatedComments" configuration="{settings.comments.paginate}">
- <f:for each="{paginatedComments}" as="comment">
- <f:render partial="Comment/Show" arguments="{comment: comment}" />
+ <f:if condition="{posts}">
+ <f:widget.paginate objects="{posts}" as="paginatedPosts" configuration="{settings.latestPosts.paginate}">
+ <ul>
+ <f:for each="{paginatedPosts}" as="post">
+ <li>
+ <f:link.action action="show" arguments="{post.linkParameter}">
+ {post.title}
+ </f:link.action>
+ </li>
</f:for>
+ </ul>
</f:widget.paginate>
</f:if>
Please sign in to comment.
Something went wrong with that request. Please try again.