feat(metaGenerator): restore metaGenerator

* hexo's meta_generator also append to <title> of <svg>
Revert "feat(metaGenerator): drop metaGenerator in favor of Hexo's"
This reverts commit afb4741be6.
This commit is contained in:
curben 2019-08-30 05:40:35 +01:00
parent 156c10460a
commit 2207579d19
3 changed files with 11 additions and 0 deletions

View File

@ -86,6 +86,8 @@ neat_svg:
deploy: deploy:
type: type:
meta_generator: false
feed: feed:
icon: 'svg/rss.svg' icon: 'svg/rss.svg'

8
scripts/metaGenerator.js Normal file
View File

@ -0,0 +1,8 @@
'use strict'
/* global hexo */
function metaGeneratorHelper () {
return '<meta name="generator" content="Hexo %s">'.replace('%s', this.env.version)
}
hexo.extend.helper.register('metaGenerator', metaGeneratorHelper)

View File

@ -1,5 +1,6 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<%- metaGenerator() %>
<% <%
let title = page.title let title = page.title