Improve suport for image posts

This commit is contained in:
2023-02-06 15:03:18 +11:00
parent 2c56fafc49
commit 811affc9b3
5 changed files with 15 additions and 4 deletions

View File

@@ -42,6 +42,10 @@ module Adamantium
published_at.rfc2822
end
def feed_content
photos? ? "<div>#{photos.map { |p| "<img src='#{p["value"]}'/>" }.join("")} #{content}</div>" : content
end
def excerpt
truncate_html(content, 140, true)
end