diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs
index 2f2c844..9f013aa 100644
--- a/layout/_partial/head.ejs
+++ b/layout/_partial/head.ejs
@@ -25,7 +25,7 @@
<%- __favicon_tag('images/logo.svg') %>
<%- css('css/style') %>
- <%- __font('css/font-awesome.min.css') %>
+ <%- __css('css/font-awesome.min.css') %>
<%- export_config() %>
diff --git a/scripts/helpers/helper.js b/scripts/helpers/helper.js
index c357787..c90231c 100644
--- a/scripts/helpers/helper.js
+++ b/scripts/helpers/helper.js
@@ -65,11 +65,10 @@ hexo.extend.helper.register('__js', function (path) {
return t;
});
-hexo.extend.helper.register('__font', function (path) {
+hexo.extend.helper.register('__css', function (path) {
const _css = hexo.extend.helper.get('css').bind(hexo);
if (this.theme.cdn.enable) {
- // return ``;
- return ``;
+ return ``;
} else {
return _css(path);
}
@@ -79,7 +78,7 @@ hexo.extend.helper.register('__font', function (path) {
hexo.extend.helper.register('__favicon_tag', function (path) {
const _favicon_tag = hexo.extend.helper.get('favicon_tag').bind(hexo);
if (this.theme.cdn.enable) {
- return ``
+ return ``
} else {
return _favicon_tag(path);
}