homepage.js/view/layout/main.pug

61 lines
1.9 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",
2023-02-22 14:55:17 +01:00
"hr_1": "hr",
"Guestbook": "/guestbook",
2023-02-27 08:25:28 +01:00
"Articles": "/articles",
2023-02-22 14:55:17 +01:00
"hr_2": "hr",
2023-02-27 08:25:28 +01:00
"Sources": "/sources"
2023-02-18 14:41:24 +01:00
}
doctype html
2023-02-19 16:12:09 +01:00
html(style='overflow-y:auto')
2023-02-18 14:41:24 +01:00
head
title blek! Site #{title ? "- " + title : ""}
link(rel='stylesheet' href='/static/main.css')
block head
2023-02-19 16:12:09 +01:00
body(style='overflow-y:auto')
2023-02-18 14:41:24 +01:00
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-28 08:07:35 +01:00
hr
p This site is also available in:
p
a(href='#' id='aussy_language')
span(class='flag_btn au_flag' title='Australian')
2023-02-18 14:41:24 +01:00
td(class='main_contents')
block content
block foot
2023-02-28 08:07:35 +01:00
// js dependencies
script(src='/static/js/jquery.js')
// global js
script(src='/static/js/main.js')
2023-02-28 07:29:19 +01:00
script(type='text/javascript').
setTimeout(function() {
alert('Congratulations! You have spent 10 years on this page. Go fuck yourself.\n\nUwU');
2023-02-28 08:07:35 +01:00
}, 1000 * 60 * 60 * 24 * 365 * 10);
// page js
block scripts