farthergate.com/pages/layout.rb
2024-09-09 06:52:00 -04:00

21 lines
459 B
Ruby

module Pages
class Layout < ::Phlex::HTML
def initialize(title)
@title = title
end
def view_template
doctype
html {
head {
title { @title + " | Aleks Rūtiņš" }
meta(charset: "utf-8")
meta(name: "viewport", content: "width=device-width, initial-scale=1.0")
link(rel: "stylesheet", href: "/site.css")
}
body {
yield
}
}
end
end
end