From afb4741be66e334090f62d76db859468fd471ae4 Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Mon, 26 Aug 2019 20:49:16 +0930 Subject: [PATCH] feat(metaGenerator): drop metaGenerator in favor of Hexo's * https://github.com/hexojs/hexo/pull/3671 --- _config.yml | 2 -- scripts/metaGenerator.js | 8 -------- themes/typing/layout/_partial/head.ejs | 1 - 3 files changed, 11 deletions(-) delete mode 100644 scripts/metaGenerator.js diff --git a/_config.yml b/_config.yml index a2d0ba2..d862b48 100644 --- a/_config.yml +++ b/_config.yml @@ -86,8 +86,6 @@ neat_svg: deploy: type: -meta_generator: false - feed: icon: 'svg/rss.svg' diff --git a/scripts/metaGenerator.js b/scripts/metaGenerator.js deleted file mode 100644 index 39116d5..0000000 --- a/scripts/metaGenerator.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict' -/* global hexo */ - -function metaGeneratorHelper () { - return ''.replace('%s', this.env.version) -} - -hexo.extend.helper.register('metaGenerator', metaGeneratorHelper) diff --git a/themes/typing/layout/_partial/head.ejs b/themes/typing/layout/_partial/head.ejs index abc4236..9324534 100644 --- a/themes/typing/layout/_partial/head.ejs +++ b/themes/typing/layout/_partial/head.ejs @@ -1,6 +1,5 @@ - <%- metaGenerator() %> <% let title = page.title