2020-06-24 08:08:28 +00:00
|
|
|
doctype html
|
2020-06-24 15:40:20 +00:00
|
|
|
html(prefix="og: http://ogp.me/ns#")
|
|
|
|
- import constants;
|
2020-06-24 08:08:28 +00:00
|
|
|
head
|
2020-06-27 14:54:06 +00:00
|
|
|
//- Kick off loading the css as fast as possible
|
2020-06-24 08:08:28 +00:00
|
|
|
meta(name="viewport", content="width=device-width; initial-scale=1")
|
|
|
|
link(rel="stylesheet", href="/static/style/base.css")
|
2020-06-27 14:54:06 +00:00
|
|
|
|
|
|
|
- string page_image = "/static/img/logo.png";
|
|
|
|
- string page_title;
|
|
|
|
- string page_type;
|
|
|
|
- string page_url;
|
|
|
|
- string page_description;
|
|
|
|
block meta_data
|
|
|
|
|
|
|
|
- if (page_title !is null)
|
2020-06-27 22:11:50 +00:00
|
|
|
title& #{page_title} - #{Constants.SITE_NAME}
|
2020-06-27 14:54:06 +00:00
|
|
|
meta(name="og:title", content=page_title)
|
|
|
|
- else
|
2020-06-27 22:11:50 +00:00
|
|
|
title& #{Constants.SITE_NAME}
|
2020-06-27 14:54:06 +00:00
|
|
|
|
|
|
|
meta(name="og:site_name", content=Constants.SITE_NAME)
|
|
|
|
- if (page_image !is null)
|
|
|
|
meta(name="og:image", content=Constants.SITE_URL ~ page_image)
|
|
|
|
- if (page_type !is null)
|
|
|
|
meta(name="og:type", content=page_type)
|
|
|
|
- if (page_url !is null)
|
|
|
|
meta(name="og:url", content=Constants.SITE_URL ~ page_url)
|
|
|
|
- if (page_description !is null)
|
|
|
|
meta(name="og:description", content=page_description)
|
|
|
|
block extra_meta_data
|
|
|
|
|
2020-06-25 08:51:26 +00:00
|
|
|
link(rel="stylesheet", href="/static/style/highlight.css", defer)
|
2020-06-24 08:08:28 +00:00
|
|
|
link(rel="alternate stylesheet", href="/static/style/old.css", title="1999")
|
|
|
|
link(rel="shortcut icon", href="/static/img/logo.png")
|
2020-06-24 22:26:11 +00:00
|
|
|
link(rel="apple-touch-icon", href="/static/img/logo.png")
|
2020-06-24 08:08:28 +00:00
|
|
|
meta(name="theme-color", content="#7f0602")
|
|
|
|
|
|
|
|
block header
|
|
|
|
body
|
2020-06-24 15:40:20 +00:00
|
|
|
- void menuItem(string text, string link)
|
|
|
|
li
|
|
|
|
a(href="#{link}") #{text}
|
|
|
|
|
|
|
|
section.header-navigation
|
|
|
|
header
|
|
|
|
img.logo(src="/static/img/logo.png", alt="The logo of the website: the letter C drawn in an unprofessional manner with wobbly eyes on put on top")
|
2020-06-27 22:11:50 +00:00
|
|
|
p& Chris's website
|
2020-06-24 15:40:20 +00:00
|
|
|
nav
|
|
|
|
ul
|
|
|
|
- menuItem("home", "/");
|
|
|
|
- menuItem("posts", "/posts/");
|
|
|
|
- menuItem("projects", "/projects/");
|
2020-06-24 08:08:28 +00:00
|
|
|
block sidebar
|
2020-06-24 15:40:20 +00:00
|
|
|
footer.hide-small
|
|
|
|
block footer
|
|
|
|
include /parts/footer.dt
|
2020-06-24 08:08:28 +00:00
|
|
|
main
|
|
|
|
block content
|
2020-06-24 15:40:20 +00:00
|
|
|
|
|
|
|
footer.hide-big
|
|
|
|
block footer
|
|
|
|
include /parts/footer.dt
|