hexo-theme-ayer/scripts/helpers/ayer-plus-vendors.js
2020-01-07 14:05:02 +08:00

10 lines
206 B
JavaScript

/* global hexo */
'use strict';
/** 自定义链接生成 */
hexo.extend.helper.register('ayer_plus_vendors', function (url) {
if (url.startsWith('//')) return url;
return this.url_for(`${url}`);
});