This commit is contained in:
amehime
2020-09-25 00:31:31 +08:00
parent b045672a56
commit b28ca8f9ee
2 changed files with 4 additions and 1 deletions

View File

@@ -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)
}
}

View File

@@ -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