Add Go module hosting

This commit is contained in:
Aleks Rūtiņš 2025-02-14 03:11:25 +00:00
parent 7c4208375a
commit b42d31fa4c
3 changed files with 36 additions and 1 deletions

View file

@ -19,13 +19,14 @@ module Pages
},
}
def initialize(page)
def initialize(page, meta:)
@page = page
if @page.is_a? Symbol
@page_info = pages[page]
else
@page_info = @page
end
@meta = meta
end
def view_template
@ -38,6 +39,10 @@ module Pages
link(rel: "prefetch", href: "/DM_Mono/DMMono-Regular.ttf")
link(rel: "prefetch", href: "/DM_Mono/DMMono-Medium.ttf")
link(rel: "stylesheet", href: "/site.css")
@meta.each { |name, content|
meta(name: name, content: content)
}
}
body {
header {