|
|
@ -100,13 +100,13 @@
|
|
|
|
return style.join('; ') + ';';
|
|
|
|
return style.join('; ') + ';';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
helpers.generateChildrenCategories = function(category, relative_path) {
|
|
|
|
helpers.generateChildrenCategories = function(category) {
|
|
|
|
var html = '';
|
|
|
|
var html = '';
|
|
|
|
category.children.forEach(function(child) {
|
|
|
|
category.children.forEach(function(child) {
|
|
|
|
if (!child) {
|
|
|
|
if (!child) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var link = child.link ? child.link : ('/category/' + child.slug);
|
|
|
|
var link = child.link ? child.link : (config.relative_path + '/category/' + child.slug);
|
|
|
|
html += '<a href="' + link + '">' +
|
|
|
|
html += '<a href="' + link + '">' +
|
|
|
|
'<span class="fa-stack fa-lg">' +
|
|
|
|
'<span class="fa-stack fa-lg">' +
|
|
|
|
'<i style="color:' + child.bgColor + ';" class="fa fa-circle fa-stack-2x"></i>' +
|
|
|
|
'<i style="color:' + child.bgColor + ';" class="fa fa-circle fa-stack-2x"></i>' +
|
|
|
|