text: /* global hexo */
  
  'use strict';
  
  const joinPath = require('../utils/join-path');
  
  hexo.extend.helper.register('css_ex', function(base, relative, ex = '') {
    return `<link ${ex} rel="stylesheet" href="${this.url_for(joinPath(base, relative))}" />`;
  });
  
  hexo.extend.helper.register('js_ex', function(base, relative, ex = '') {
    return `<script ${ex} src="${this.url_for(joinPath(base, relative))}" ></script>`;
  });
  
  hexo.extend.helper.register('url_join', function(base, relative) {
    return this.url_for(joinPath(base, relative));
  });
  