mirror of
https://github.com/len0rd/personal-website.git
synced 2026-01-20 08:40:44 -05:00
updating some content. No longer a student. wooot
This commit is contained in:
parent
0e266d84ff
commit
8146c8ab09
6 changed files with 55 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue