silverstripe-blog/templates/Layout/Blog.ss

45 lines
971 B
Scheme
Raw Normal View History

2015-03-04 23:20:47 +01:00
<% require themedCSS('blog', 'blog') %>
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
2015-11-12 00:20:11 +01:00
<article>
<h1>
<% if $ArchiveYear %>
<%t Blog.Archive 'Archive' %>:
<% if $ArchiveDay %>
$ArchiveDate.Nice
<% else_if $ArchiveMonth %>
$ArchiveDate.format('F, Y')
<% else %>
$ArchiveDate.format('Y')
<% end_if %>
<% else_if $CurrentTag %>
<%t Blog.Tag 'Tag' %>: $CurrentTag.Title
<% else_if $CurrentCategory %>
<%t Blog.Category 'Category' %>: $CurrentCategory.Title
<% else %>
$Title
<% end_if %>
</h1>
<div class="content">$Content</div>
<% if $PaginatedList.Exists %>
<% loop $PaginatedList %>
<% include PostSummary %>
<% end_loop %>
<% else %>
2015-11-18 22:09:46 +01:00
<p><%t Blog.NoPosts 'There are no posts' %></p>
2015-11-12 00:20:11 +01:00
<% end_if %>
</article>
$Form
$CommentsForm
<% with $PaginatedList %>
2015-03-04 23:20:47 +01:00
<% include Pagination %>
<% end_with %>
</div>
<% include BlogSideBar %>