Hi,
I'm using silverstripe-blog dev-master latest 4e78e58 on 3.1.13. I'm noticing some strange markup in the post-summary from PostSummary.ss [1]:
<p class="post-image">
<a href="$Link" <%t Blog.ReadMoreAbout "Read more about '{title}'..." title=$Title %>>
$FeaturedImage.setWidth(795)
</a>
</p>
Firstly, I don't think I have a featured image assigned ... but this markup will render anyway - there's no conditional around it?
But the bigger problem is the Blog.ReadMoreAbout call output, which seems to be sitting inside the opening <a> tag, without an attribute name. This might be an overlap/confusion with the following Excerpt/Summary logic, which does similar things.
So my questions are:
- Should that post-image block be rendering at all, if I haven't added a featured image for the post, does it need some conditional logic around it?
- Should the Blog.ReadMoreAbout be removed from this block?
Thanks
Brett
[1] https://github.com/silverstripe/silverstripe-blog/blob/master/templates/Includes/PostSummary.ss