mirror of
https://github.com/amehime/hexo-theme-shoka.git
synced 2026-04-05 10:42:51 +08:00
fix
This commit is contained in:
@@ -89,12 +89,13 @@ hexo.extend.helper.register('_url', function(path, text, options = {}) {
|
||||
|
||||
hexo.extend.helper.register('_cover', function(item, num) {
|
||||
const { statics, js } = hexo.theme.config;
|
||||
var that = this
|
||||
|
||||
var format = function(img) {
|
||||
if (img.startsWith('//') || img.startsWith('http')) {
|
||||
return img
|
||||
} else {
|
||||
return url_for.call(this, statics + img)
|
||||
return url_for.call(that, statics + img)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -261,6 +261,8 @@ const loadRecentComment = function (pjax) {
|
||||
var prefix = 'https://'
|
||||
var serverURLs = ''
|
||||
var options = CONFIG.valine
|
||||
if(!options.appId)
|
||||
return;
|
||||
if (!options.serverURLs) {
|
||||
switch (options.appId.slice(-9)) {
|
||||
// TAB
|
||||
|
||||
Reference in New Issue
Block a user