'use strict'; // 文章实效性提示 hexo.extend.injector.register('body_end', ` `); // shynet 统计 hexo.extend.injector.register('head_begin', ` `); // 首选网页 canonical hexo.extend.helper.register('autoCanonical', function (config, page) { var base_url = config.url; if (config.url.charAt(config.url.length - 1) !== '/') base_url += '/'; base_url += page.canonical_path return ''; });