Redesign with Tailwind
This commit is contained in:
parent
b29b35e166
commit
3a25e0b4b0
13 changed files with 161 additions and 121 deletions
|
@ -6,10 +6,12 @@ class Pages::Post < ::Phlex::HTML
|
|||
def view_template
|
||||
meta = @post[:data].front_matter
|
||||
render ::Pages::Layout.new({title: meta['title']}) {
|
||||
p {
|
||||
article(class: 'prose prose-lg m-auto') {
|
||||
h1 { meta['title'] }
|
||||
time(datetime: meta['published_on']) { meta['published_on'] }
|
||||
|
||||
hr
|
||||
|
||||
render ::Phlex::Markdown.new(@post[:data].content)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue