implement blog

This commit is contained in:
Aleks Rūtiņš 2024-10-06 22:07:20 -04:00
parent b4dcd84581
commit a52f258402
8 changed files with 77 additions and 2 deletions

View file

@ -17,12 +17,18 @@ module Pages
def initialize(page)
@page = page
if @page.is_a? Symbol
@page_info = pages[page]
else
@page_info = @page
end
end
def view_template
doctype
html {
head {
title { pages[@page][:title] + " | Aleks Rūtiņš" }
title { @page_info[: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")