mirror of https://gitlab.com/curben/blog
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:
parent
156c10460a
commit
2207579d19
|
@ -86,6 +86,8 @@ neat_svg:
|
||||||
deploy:
|
deploy:
|
||||||
type:
|
type:
|
||||||
|
|
||||||
|
meta_generator: false
|
||||||
|
|
||||||
feed:
|
feed:
|
||||||
icon: 'svg/rss.svg'
|
icon: 'svg/rss.svg'
|
||||||
|
|
||||||
|
|
|
@ -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)
|
|
@ -1,5 +1,6 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
<%- metaGenerator() %>
|
||||||
<%
|
<%
|
||||||
let title = page.title
|
let title = page.title
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue