Skip to content

Commit

Permalink
feat($core): Add generator meta tag to ssr index.html template (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
kefranabg authored Jan 21, 2020
1 parent be52944 commit 2826cd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/@vuepress/core/lib/client/index.ssr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{ title }}</title>
<meta name="description" content="{{ description }}">
<meta name="generator" content="VuePress {{ version }}">
{{{ userHeadTags }}}
{{{ pageMeta }}}
{{{ renderResourceHints() }}}
Expand Down
4 changes: 3 additions & 1 deletion packages/@vuepress/core/lib/node/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const createClientConfig = require('../webpack/createClientConfig')
const createServerConfig = require('../webpack/createServerConfig')
const { createBundleRenderer } = require('vue-server-renderer')
const { normalizeHeadTag, applyUserWebpackConfig } = require('../util/index')
const { version } = require('../../../package')

/**
* Expose Build Process Class.
Expand Down Expand Up @@ -147,7 +148,8 @@ module.exports = class Build extends EventEmitter {
pageMeta,
title: 'VuePress',
lang: 'en',
description: ''
description: '',
version
}

let html
Expand Down

0 comments on commit 2826cd7

Please sign in to comment.