silverstripe-webpack/app/templates/Dynamic/Elements/Blog/Elements/ElementBlogPosts.ss

17 lines
552 B
Scheme
Raw Normal View History

2021-03-21 21:06:35 +01:00
<% if $Title && $ShowTitle %><h2 class="element__title">$Title</h2><% end_if %>
<% if $Content %><div class="element__html typography">$Content</div><% end_if %>
<% if $PostsList %>
2021-03-21 21:06:35 +01:00
<div class="element__content">
<div class="row">
<% loop $PostsList %>
<div class="col-sm-4">
2021-03-14 21:45:35 +01:00
<% include SilverStripe\Blog\Includes\BlogPostInfo %>
</div>
<% end_loop %>
</div>
2021-03-21 21:06:35 +01:00
<%-- p><a href="$Blog.Link" class="element__link btn btn-primary" title="Go to the $Title page">View all posts</a></p --%>
</div>
<% end_if %>