Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
665 B

const utils = require('../utils/utils.js');
var Promise = require('promise');
module.exports=
{
main: function(res)
{
return new Promise(function(resolve, reject)
{
res.write("<div class=\"w3-col l4\">");
utils.include(res,"sidebar/sidebar.html").then(function()
{
return require("../sidebar/popularPosts.js").main(res);
}).then(function()
{
return require("../sidebar/categoriesSideBar.js").main(res);
}).then(function()
{
res.write("</div>");
resolve();
});
})
}
};