updating some content. No longer a student. wooot

This commit is contained in:
len0rd 2019-11-21 22:43:29 -07:00
parent 0e266d84ff
commit 8146c8ab09
6 changed files with 55 additions and 9 deletions

View file

@ -22,9 +22,10 @@ app.get(/\/.*/, function(req, res) {
if (pathname.includes('projects') && page !== 'index') {
// projects has a custom template that is used for all projects
// so we need to change the pathname that the renderer is using
// to that template:
// that template:
pathname = pathname.substr(0, pathname.lastIndexOf(page));
pathname += 'project_template'
// provide the pagename for project_template to use for main content
page = 'partials/md/' + page;
}
}
@ -33,4 +34,4 @@ app.get(/\/.*/, function(req, res) {
res.render(pathname, {"page": page});
});
app.listen(PORT);
app.listen(PORT);