Styling and RSS updates
This commit is contained in:
@@ -9,4 +9,5 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:
|
||||
button hx-post="/admin/posts/#{post.id}/syndicate/day_one" Send to Day One
|
||||
article class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline prose-img:rounded"
|
||||
h1= post.name
|
||||
== post.content
|
||||
textarea class="w-full border-pink-200 border-2 rounded p-2" x-data="{ resize: () => { $el.style.height = '5px'; $el.style.height = $el.scrollHeight + 'px' } }" x-init="resize()" @input="resize()"
|
||||
== markdown_body
|
@@ -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
|
||||
|
Reference in New Issue
Block a user