This commit is contained in:
parent
4b73564dac
commit
a4f9dadd8b
10 changed files with 58 additions and 17 deletions
|
@ -5,7 +5,7 @@ class Pages::Post < ::Phlex::HTML
|
|||
end
|
||||
def view_template
|
||||
meta = @post[:data].front_matter
|
||||
render ::Pages::Layout.new({title: meta['title']}) {
|
||||
render ::Pages::Layout.new({ as: :blog, title: meta['title'] }, banner: meta['banner'], meta: {title: meta['title']}) {
|
||||
article(class: 'prose prose-lg m-auto') {
|
||||
h1 { meta['title'] }
|
||||
if meta['published_on']
|
||||
|
@ -19,7 +19,7 @@ class Pages::Post < ::Phlex::HTML
|
|||
|
||||
hr
|
||||
|
||||
render ::Phlex::Markdown.new(@post[:data].content)
|
||||
raw safe Kramdown::Document.new(@post[:data].content).to_html
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue