hexo-magnet
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -41,6 +41,6 @@ /** | ||
data_list = categories_list | ||
load_more_href = '/categories' | ||
load_more_href = hexo.config.url + '/categories' | ||
}else if (hexo.config.magnet.type ==='tags'){ | ||
data_list = tag_list | ||
load_more_href = '/tags' | ||
load_more_href = hexo.config.url+ '/tags' | ||
} | ||
@@ -62,3 +62,3 @@ var categories_new_list = []; | ||
categories_new_list.push(item_group) | ||
temple_html_item += `<div class="magnet_item"><a class="magnet_link" href="${item.path}"><div class="magnet_link_context" style=""><span style="font-weight:500;flex:1">${j.icon} ${j.display_name}${br_devide}(${item.length})</span><span style="padding:0px 4px;border-radius: 8px;"><i class="fas fa-arrow-circle-right"></i></span></div></a></div>`; | ||
temple_html_item += `<div class="magnet_item"><a class="magnet_link" href="${hexo.config.url}/${item.path}"><div class="magnet_link_context" style=""><span style="font-weight:500;flex:1">${j.icon} ${j.display_name}${br_devide}(${item.length})</span><span style="padding:0px 4px;border-radius: 8px;"><i class="fas fa-arrow-circle-right"></i></span></div></a></div>`; | ||
} | ||
@@ -85,3 +85,3 @@ } | ||
var temple_html =`${temple[0]}${temple_html_item}${temple[1]}`; | ||
var script_text = ` <script data-pjax>if(${get_layout} && location.pathname =='${hexo.config.magnet.enable_page}'){ | ||
var script_text = ` <script data-pjax>if(${get_layout} && (location.pathname ==='${hexo.config.magnet.enable_page}'|| '${hexo.config.magnet.enable_page}' ==='all')){ | ||
var parent = ${get_layout}; | ||
@@ -88,0 +88,0 @@ var child = '${temple_html}'; |
{ | ||
"name": "hexo-magnet", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10438