From c2492c29d5848b84732bcc4a8e8ed7838c5516f9 Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 17 Nov 2022 22:56:08 +0800 Subject: [PATCH] chore(helpers): rename `export_config` -> `exportConfig` --- layout/_partial/head.ejs | 2 +- scripts/helpers/export-config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 8e944c3..0ef3183 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -33,6 +33,6 @@ <%- __css('fontawesome/css/regular.min.css') %> <%- __css('fontawesome/css/solid.min.css') %> <%- __css('fontawesome/css/brands.min.css') %> - <%- export_config() %> + <%- exportConfig() %> diff --git a/scripts/helpers/export-config.js b/scripts/helpers/export-config.js index 62a96b7..cc483e4 100644 --- a/scripts/helpers/export-config.js +++ b/scripts/helpers/export-config.js @@ -10,7 +10,7 @@ const yaml = require('js-yaml') /** * Export theme config to js */ -hexo.extend.helper.register('export_config', function () { +hexo.extend.helper.register('exportConfig', function () { const { config, theme } = this // ------------------------ export language to js ------------------------