diff --git a/_config.yml b/_config.yml index d862b48..a2d0ba2 100644 --- a/_config.yml +++ b/_config.yml @@ -86,6 +86,8 @@ neat_svg: deploy: type: +meta_generator: false + feed: icon: 'svg/rss.svg' diff --git a/scripts/metaGenerator.js b/scripts/metaGenerator.js new file mode 100644 index 0000000..39116d5 --- /dev/null +++ b/scripts/metaGenerator.js @@ -0,0 +1,8 @@ +'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 9324534..abc4236 100644 --- a/themes/typing/layout/_partial/head.ejs +++ b/themes/typing/layout/_partial/head.ejs @@ -1,5 +1,6 @@
+ <%- metaGenerator() %> <% let title = page.title