homepage.js/view/layout/main.pug

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-02-18 14:41:24 +01:00
block root
-
let routes = {
"Main page": '/',
"Projects": "/project",
2023-02-19 15:19:46 +01:00
"About me": "/about",
"hr": "hr",
"Guestbook": "/guestbook"
2023-02-18 14:41:24 +01:00
}
doctype html
html
head
title blek! Site #{title ? "- " + title : ""}
link(rel='stylesheet' href='/static/main.css')
block head
body
table(width='100%' height='100%' class='body_table')
tr
td(class='side_menu')
h1
a(href='/') blek! Site
hr(class='flag_hr')
ul
each route, name in routes
2023-02-19 15:19:46 +01:00
if (route == 'hr')
li <hr/>
else
li(style='padding-left:4px')
if current_route == route
| > #{name}
else
a(href=route) #{name}
2023-02-18 14:41:24 +01:00
td(class='main_contents')
block content
block foot
block scripts