Replies: 1 comment 1 reply
|
The helper you want is <% collections.reviews.first(5).each do |review| %>
<div>
<h3><a href="<%= review.relative_url %>"><%= review.data.title %></a></h3>
<%= markdownify(review.summary) %>
<a href="<%= review.relative_url %>">more...</a>
</div>
<% end %>
Why a no-op save "fixes" it locallyFirst request after Saving If <pre><%= review.summary.inspect %></pre>
A |
Uh oh!
There was an error while loading. Please reload this page.
I have a simple bit of code on my front page that shows the summary for the most recent reviews
But regardless of what I've tried, the built site shows the summary in raw markdown rather than html.
Weirdly, when I first start up a local server the local version of the page also shows it in raw markdown. But if I then save my
src/index.mdfile without changing anything, the page then renders the summary correctly. If I stop the server and restart it, it goes back to raw markdown.I'm clearly hitting some weirdness around SafeBuffer, but I'm not sure what.
All reactions