2018-01-29 23:31:26 +01:00
|
|
|
<% require css('silverstripe/blog: client/dist/styles/main.css') %>
|
2015-03-04 23:20:47 +01:00
|
|
|
|
|
|
|
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
|
|
|
|
2015-11-12 00:20:11 +01:00
|
|
|
<article>
|
|
|
|
<h1>
|
|
|
|
<% if $ArchiveYear %>
|
2017-09-18 05:27:39 +02:00
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:
|
2015-11-12 00:20:11 +01:00
|
|
|
<% if $ArchiveDay %>
|
|
|
|
$ArchiveDate.Nice
|
|
|
|
<% else_if $ArchiveMonth %>
|
2018-11-26 03:03:29 +01:00
|
|
|
$ArchiveDate.format('MMMM, y')
|
2015-11-12 00:20:11 +01:00
|
|
|
<% else %>
|
2018-11-26 03:03:29 +01:00
|
|
|
$ArchiveDate.format('y')
|
2015-11-12 00:20:11 +01:00
|
|
|
<% end_if %>
|
|
|
|
<% else_if $CurrentTag %>
|
2017-09-18 05:27:39 +02:00
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
|
2015-11-12 00:20:11 +01:00
|
|
|
<% else_if $CurrentCategory %>
|
2017-09-18 05:27:39 +02:00
|
|
|
<%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>: $CurrentCategory.Title
|
2015-11-12 00:20:11 +01:00
|
|
|
<% else %>
|
|
|
|
$Title
|
|
|
|
<% end_if %>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="content">$Content</div>
|
|
|
|
|
|
|
|
<% if $PaginatedList.Exists %>
|
|
|
|
<% loop $PaginatedList %>
|
2017-09-20 23:10:21 +02:00
|
|
|
<% include SilverStripe\\Blog\\PostSummary %>
|
2015-11-12 00:20:11 +01:00
|
|
|
<% end_loop %>
|
|
|
|
<% else %>
|
2017-09-18 05:27:39 +02:00
|
|
|
<p><%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %></p>
|
2015-11-12 00:20:11 +01:00
|
|
|
<% end_if %>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
$Form
|
|
|
|
$CommentsForm
|
|
|
|
|
|
|
|
<% with $PaginatedList %>
|
2017-09-20 23:10:21 +02:00
|
|
|
<% include SilverStripe\\Blog\\Pagination %>
|
2015-03-04 23:20:47 +01:00
|
|
|
<% end_with %>
|
|
|
|
</div>
|
|
|
|
|
2017-09-20 23:10:21 +02:00
|
|
|
<% include SilverStripe\\Blog\\BlogSideBar %>
|