From 9cd422842c9751a17784db3ae24ba4dce2cac0d2 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Mon, 6 Apr 2020 17:08:59 -0400 Subject: [PATCH] fix(style): bind fontcdn helper to template locals --- include/hexo/filter/stylus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')