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}