implement blog
This commit is contained in:
parent
b4dcd84581
commit
a52f258402
8 changed files with 77 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue