Initial commit

This commit is contained in:
Chris Josten 2020-06-24 10:08:28 +02:00
commit 4a9cfda0bd
40 changed files with 2743 additions and 0 deletions

View file

@ -0,0 +1,26 @@
extends /parts/page.dt
block header
title Posts - Netsoj.nl
block sidebar
include /parts/menu.dt
block content
header
h1.title Post list
- import vibe.d;
- if (articleList.length == 0)
p No posts found
- else
- import utils;
- foreach(article; articleList)
article
header
a(href="/posts/#{article.slug}", rel="bookmark")
h2.title #{article.title}
p.subtitle
| By #{article.author} on #{article.firstPublished.toHumanString}
- if (article.firstPublished != article.updated)
|, updated on #{article.updated.toHumanString}
p #{article.excerpt}…

17
views/pages/article.dt Normal file
View file

@ -0,0 +1,17 @@
extends /parts/page
block header
title #{content.title} - Netsoj.nl
block sidebar
include /parts/menu.dt
block content
article
- import utils;
header
h1.title #{content.title}
p.subtitle
| By #{content.author} on #{content.firstPublished.toHumanString}
- if (content.firstPublished != content.updated)
|, updated on #{content.updated.toHumanString}
| !{content.content}

12
views/pages/error.dt Normal file
View file

@ -0,0 +1,12 @@
extends /parts/page.dt
block header
title #{error.message} - Netsoj.nl
block sidebar
include /parts/menu.dt
block content
header
h1.title #{error.message}
p #{error.debugMessage}

12
views/pages/page.dt Normal file
View file

@ -0,0 +1,12 @@
extends /parts/page.dt
block header
title #{content.title} - Netsoj.nl
block sidebar
include /parts/menu.dt
block content
header
h1.title #{content.title}
| !{content.content}

View file

@ -0,0 +1,25 @@
extends /parts/page.dt
block header
title Projects - Netsoj.nl
block sidebar
include /parts/menu.dt
block content
header
h1.title Projects
p Note: I'm not a graphic designer, so please ignore the icons.
- if (projectList.length == 0)
p No projects found
- foreach(project; projectList)
div.project
img(src="#{project.icon}")
h2 #{project.title}
p.platforms
- foreach(platform; project.platforms)
span.platform #{platform}
p.technologies
- foreach(technology; project.technologies)
span.platform #{technology}

View file

14
views/parts/menu.dt Normal file
View file

@ -0,0 +1,14 @@
- void menuItem(string text, string link)
li
a(href="#{link}") #{text}
header
img.logo(src="/static/img/logo.png")
p Chris's webstekkie
ul
- menuItem("home", "/");
- menuItem("posts", "/posts/");
- menuItem("projects", "/projects/");
footer
p ©Chris Josten, 2020

16
views/parts/page.dt Normal file
View file

@ -0,0 +1,16 @@
doctype html
html
head
meta(name="viewport", content="width=device-width; initial-scale=1")
link(rel="stylesheet", href="/static/style/base.css")
link(rel="stylesheet", href="/static/style/highlight.css")
link(rel="alternate stylesheet", href="/static/style/old.css", title="1999")
link(rel="shortcut icon", href="/static/img/logo.png")
meta(name="theme-color", content="#7f0602")
block header
body
nav
block sidebar
main
block content