Redesign with Tailwind

This commit is contained in:
Aleks Rutins 2025-06-09 21:50:52 -04:00
parent b29b35e166
commit 3a25e0b4b0
Signed by: asr
SSH key fingerprint: SHA256:DBype7RrB3qCdOLdkvecD2Y3THOYgYOVw6jAHVgsGRQ
13 changed files with 161 additions and 121 deletions

View file

@ -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)
}
}