From bbab3cf95b85b0314e9f47328bb2a38c540a5345 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 26 Sep 2021 21:53:40 -0500 Subject: Add about me page --- src/css/styles.css | 4 +++ src/server.js | 6 +++- src/templates.js | 1 + src/templates/about.html | 65 +++++++++++++++++++++++++++++++++++++++++++ src/templates/navigation.html | 1 + 5 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 src/templates/about.html (limited to 'src') diff --git a/src/css/styles.css b/src/css/styles.css index 4572569..b89a373 100644 --- a/src/css/styles.css +++ b/src/css/styles.css @@ -237,3 +237,7 @@ a.navigation:visited, a.navigation:link { float: right; } +dl > dt { + font-weight: bold; +} + diff --git a/src/server.js b/src/server.js index 4e109ad..b689ff5 100644 --- a/src/server.js +++ b/src/server.js @@ -100,6 +100,7 @@ async function sitemap(models) { "/work-square", "/misc", "/projects", + "/about", ] routes.forEach(item => { urlset.push(to_sitemap_xml(host, item, new Date().toISOString())) @@ -215,7 +216,6 @@ function setUpRoutes(models, jwtFunctions, database, templates) { server.get('/word-square', cache('5 minutes'), (req, res) => res.sendFile(__dirname + "/html/word-square.html")); server.get('/chess', cache('5 minutes'), (req, res) => res.sendFile(__dirname + "/html/chess.html")); server.get('/admin/chess', cache('5 minutes'), async (req, res, next) => res.sendFile(__dirname + "/html/chess.html")); - // server.get('/projects', (req, res) => res.sendFile(__dirname + "/html/projects.html")); server.get('/zines', cache('5 minutes'), (req, res) => res.sendFile(__dirname + "/public/zines.html")); server.use('/static', express.static(__dirname + '/public')) @@ -227,6 +227,10 @@ function setUpRoutes(models, jwtFunctions, database, templates) { let body = templates["projects"](); res.status(200).send(body) }) + server.get('/about', cache('5 minutes'), async (req, res) => { + let body = templates["about"](); + res.status(200).send(body) + }) server.get('/sitemap.xml', cache('1 day'), async (req, res) => { res.setHeader('Content-Type', 'text/xml') diff --git a/src/templates.js b/src/templates.js index 05f117a..5761be7 100644 --- a/src/templates.js +++ b/src/templates.js @@ -25,6 +25,7 @@ function setUpTemplates(){ loadTemplate(templates, "tags", path.join(__dirname, 'templates/tags.html')) loadTemplate(templates, "misc", path.join(__dirname, 'templates/misc.html')) loadTemplate(templates, "projects", path.join(__dirname, 'templates/projects.html')) + loadTemplate(templates, "about", path.join(__dirname, 'templates/about.html')) return templates } diff --git a/src/templates/about.html b/src/templates/about.html new file mode 100644 index 0000000..b3d504b --- /dev/null +++ b/src/templates/about.html @@ -0,0 +1,65 @@ + + + + + Mark's Kitchen - About + + + {{> header}} + + + +
+

+ < + About +

+ {{> navigation}} +

+ Hello! I'm Mark Powers. This is my website. I started it back in + 2018 when I wanted to share my process of learning to bake bread. + Now it's mostly just a general blog, but also where I host a lot + of my projects. +

+

+ Here's a list of stuff about me: +

+
+
Occupation
+
Software engineer at Chameleon Cloud
+ +
Location
+
Chicagoland
+ +
Almae Matres
+
Hope College, UW-Madison
+ +
Source Code
+
+ Gitweb + or + GitHub +
+ +
Social
+
markp
+ +
Hobbies
+
+ Programming, video games, reading, bicycling, woodworking, + chess, cooking, disc golf +
+ +
Operating System
+
Regolith Linux
+ +
Editor
+
vim
+ +
Pets
+
One very fluffy black cat
+
+
+ + + diff --git a/src/templates/navigation.html b/src/templates/navigation.html index b101bab..6213e87 100644 --- a/src/templates/navigation.html +++ b/src/templates/navigation.html @@ -1,5 +1,6 @@