Styling and RSS updates

This commit is contained in:
2023-06-24 20:17:14 +10:00
parent a8f0b30eb1
commit 361a5dc021
5 changed files with 16 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
require "reverse_markdown"
module Admin
module Views
module Posts
@@ -7,6 +9,10 @@ module Admin
expose :post do |id:|
post_repo.find(id: id)
end
expose :markdown_body do |post|
ReverseMarkdown.convert(post.content, unknown_tags: :pass_through, github_flavored: true).to_s
end
end
end
end