diff --git a/blog/category.js b/blog/category.js
index 8a2e5ab..67c4b2d 100644
--- a/blog/category.js
+++ b/blog/category.js
@@ -25,6 +25,7 @@ module.exports=
templateContext["title"] = category;
sql.getPostsFromCategory(category).then(function(posts)
{
+ templateContext["categoryID"] = posts[0].category_id;
Promise.all([blogBodyRenderer.renderBatchOfPosts(requestURL, posts, page, 5, templateContext),
require('./renderNextBar').main("/category" + request.url, page, 5, posts.length, templateContext)]).then(function()
{
diff --git a/blog/homePage.js b/blog/homePage.js
index 912b794..2736181 100644
--- a/blog/homePage.js
+++ b/blog/homePage.js
@@ -13,7 +13,7 @@ module.exports=
main: function(requestURL, request, templateContext)
{
var page = request.query.page;
-
+ templateContext["categoryID"] = 0;
return new Promise(function(resolve, reject)
{
sql.getAllPosts().then(function(posts)
diff --git a/templates/blog/blogMain.html b/templates/blog/blogMain.html
index de4c18c..3367e4f 100644
--- a/templates/blog/blogMain.html
+++ b/templates/blog/blogMain.html
@@ -7,7 +7,7 @@
@@ -155,13 +171,11 @@
- More Posts » -
-