hexo-theme-ayer/scripts/helpers/ayer-plus-vendors.js

10 lines
206 B
JavaScript
Raw Normal View History

2020-01-07 06:05:02 +00:00
/* global hexo */
'use strict';
/** 自定义链接生成 */
hexo.extend.helper.register('ayer_plus_vendors', function (url) {
if (url.startsWith('//')) return url;
return this.url_for(`${url}`);
});