resrok-web/templates/index.html

32 lines
655 B
HTML

<div class="posts">
$for(posts)$
<div class="post">
<h1 class="post-title">
<a href="$url$">
$title$
</a>
</h1>
<span class="post-date">$date$,
$if(author)$
Posted by $author$
$endif$
</span>
$body$
</div>
$endfor$
</div>
<div class="pagination">
$if(previousPageNum)$
<a class="pagination-item newer" href="$previousPageUrl$">Newer</a>
$else$
<span class="pagination-item newer">Newer</span>
$endif$
$if(nextPageNum)$
<a class="pagination-item older" href="$nextPageUrl$">Older</a>
$else$
<span class="pagination-item older">Older</span>
$endif$
</div>