From 93c492c8990e5707f513a9c2bcee3c35631e2841 Mon Sep 17 00:00:00 2001 From: jrtechs Date: Tue, 6 Feb 2018 19:18:38 -0500 Subject: [PATCH] Updated look and feel --- includes/footer.html | 9 +++++++++ includes/header.html | 9 ++++++--- sidebar/categoriesSideBar.js | 12 ++++-------- sidebar/popularPosts.js | 10 +++++----- sidebar/recentPosts.js | 10 ++++------ utils/sql.js | 2 +- 6 files changed, 29 insertions(+), 23 deletions(-) diff --git a/includes/footer.html b/includes/footer.html index 4482490..c7f942f 100644 --- a/includes/footer.html +++ b/includes/footer.html @@ -22,6 +22,15 @@ + + + diff --git a/includes/header.html b/includes/header.html index e6c6c6d..11feafe 100644 --- a/includes/header.html +++ b/includes/header.html @@ -19,10 +19,13 @@ - diff --git a/sidebar/categoriesSideBar.js b/sidebar/categoriesSideBar.js index b9f4421..d5ce1cd 100644 --- a/sidebar/categoriesSideBar.js +++ b/sidebar/categoriesSideBar.js @@ -16,22 +16,18 @@ module.exports= { res.write("
"); - res.write("

Categories

"); + res.write("

Categories

"); - res.write("
"); + res.write(""); resolve(); }) diff --git a/sidebar/popularPosts.js b/sidebar/popularPosts.js index cae4c32..ee29702 100644 --- a/sidebar/popularPosts.js +++ b/sidebar/popularPosts.js @@ -13,18 +13,18 @@ module.exports= res.write("

Popular Posts

"); - res.write(""); + res.write(""); resolve(); }) }); diff --git a/sidebar/recentPosts.js b/sidebar/recentPosts.js index 97f4ab0..79c7df7 100644 --- a/sidebar/recentPosts.js +++ b/sidebar/recentPosts.js @@ -10,20 +10,18 @@ module.exports= res.write("
"); - res.write("

Recent Posts

"); + res.write("

Recent Posts

"); - res.write("
"); + res.write(""); resolve(); }) diff --git a/utils/sql.js b/utils/sql.js index 7bc6402..635241e 100644 --- a/utils/sql.js +++ b/utils/sql.js @@ -132,7 +132,7 @@ module.exports= { return new Promise(function(resolve, reject) { - var q = "select * from categories where name ='" + requestURL + "' limit 1"; + var q = "select * from categories where url ='" + requestURL + "'"; fetch(q).then(function(categories) { if(categories.length != 0)