diff --git a/include/hexo/filter/stylus.js b/include/hexo/filter/stylus.js index c462215..873f677 100644 --- a/include/hexo/filter/stylus.js +++ b/include/hexo/filter/stylus.js @@ -3,7 +3,7 @@ */ module.exports = function(hexo) { hexo.extend.filter.register('template_locals', locals => { - const fontcdn = hexo.extend.helper.get('fontcdn').bind(hexo); + const fontcdn = hexo.extend.helper.get('fontcdn').bind(locals); hexo.theme.config['@fontface'] = { default: fontcdn('Ubuntu:wght@400;600&family=Source+Code+Pro', 'css2'), cyberpunk: fontcdn('Oxanium:wght@300;400;600&family=Roboto+Mono', 'css2')