From c18dd9ef6c9b3407862db7f01372bc65bb1c3721 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 22 Nov 2020 19:37:10 -0600 Subject: Add svg favicon --- src/icon/favicon.svg | 1 + src/server.js | 1 + src/templates.js | 3 ++- src/templates/blog-single.html | 6 ++---- src/templates/blog.html | 6 ++---- src/templates/bread.html | 7 ++----- src/templates/header.html | 5 +++++ src/templates/index.html | 6 ++---- src/templates/misc.html | 6 ++---- src/templates/projects.html | 5 ++--- 10 files changed, 21 insertions(+), 25 deletions(-) create mode 100644 src/icon/favicon.svg create mode 100644 src/templates/header.html diff --git a/src/icon/favicon.svg b/src/icon/favicon.svg new file mode 100644 index 0000000..ad339b8 --- /dev/null +++ b/src/icon/favicon.svg @@ -0,0 +1 @@ + diff --git a/src/server.js b/src/server.js index e82fc12..2198923 100644 --- a/src/server.js +++ b/src/server.js @@ -355,6 +355,7 @@ function setUpRoutes(models, jwtFunctions, database, templates) { server.get('/favicon.ico', (req, res) => res.sendFile(__dirname + "/icon/favicon.ico")) + server.get('/favicon.svg', (req, res) => res.sendFile(__dirname + "/icon/favicon.svg")) server.get('/css/:id', (req, res) => { res.sendFile(__dirname + "/css/" + req.params.id); }); diff --git a/src/templates.js b/src/templates.js index 293f0e4..05f117a 100644 --- a/src/templates.js +++ b/src/templates.js @@ -15,6 +15,7 @@ function setUpTemplates(){ loadPartial("navigation", path.join(__dirname, "templates/navigation.html")) loadPartial("footer", path.join(__dirname, "templates/footer.html")) loadPartial("feed", path.join(__dirname, "templates/feed.html")) + loadPartial("header", path.join(__dirname, "templates/header.html")) let templates = {}; loadTemplate(templates, "index", path.join(__dirname, 'templates/index.html')) @@ -30,4 +31,4 @@ function setUpTemplates(){ module.exports = { setUpTemplates -} \ No newline at end of file +} diff --git a/src/templates/blog-single.html b/src/templates/blog-single.html index 8622007..10012b6 100644 --- a/src/templates/blog-single.html +++ b/src/templates/blog-single.html @@ -3,10 +3,8 @@ Mark's Kitchen - Blog - - - + {{> header}} @@ -20,4 +18,4 @@ {{> footer}} - \ No newline at end of file + diff --git a/src/templates/blog.html b/src/templates/blog.html index 40b86f5..1c097c0 100644 --- a/src/templates/blog.html +++ b/src/templates/blog.html @@ -3,10 +3,8 @@ Mark's Kitchen - Blog - - - + {{> header}} @@ -19,4 +17,4 @@ {{> footer}} - \ No newline at end of file + diff --git a/src/templates/bread.html b/src/templates/bread.html index b5d02ed..88a5528 100644 --- a/src/templates/bread.html +++ b/src/templates/bread.html @@ -1,12 +1,9 @@ - Mark's Kitchen - Bread - - + {{> header}} - @@ -20,4 +17,4 @@ {{> footer}} - \ No newline at end of file + diff --git a/src/templates/header.html b/src/templates/header.html new file mode 100644 index 0000000..2ceebfd --- /dev/null +++ b/src/templates/header.html @@ -0,0 +1,5 @@ + + + + + diff --git a/src/templates/index.html b/src/templates/index.html index efb7369..6ba3d5a 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -3,11 +3,9 @@ Mark's Kitchen - - - + {{> header}} @@ -17,4 +15,4 @@ {{> footer}} - \ No newline at end of file + diff --git a/src/templates/misc.html b/src/templates/misc.html index 9fb376a..ee641d1 100644 --- a/src/templates/misc.html +++ b/src/templates/misc.html @@ -3,10 +3,8 @@ Mark's Kitchen - - - + {{> header}} @@ -27,4 +25,4 @@ - \ No newline at end of file + diff --git a/src/templates/projects.html b/src/templates/projects.html index cf3361a..0ca8efa 100644 --- a/src/templates/projects.html +++ b/src/templates/projects.html @@ -3,9 +3,8 @@ Mark's Kitchen - Projects - - + {{> header}} @@ -284,4 +283,4 @@ - \ No newline at end of file + -- cgit v1.2.3