Skip to content

Commit

Permalink
fix: remove default title description setting
Browse files Browse the repository at this point in the history
  • Loading branch information
0xinhua committed Nov 11, 2019
1 parent 150de7a commit f545e29
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/saber/vue-app/create-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,22 @@ export default context => {
delete htmlAttrs.lang
}

const title = this.$siteConfig.title || 'Saber'
const { title, description } = this.$siteConfig

const defaultMeta = [
{
name: 'generator',
content: `Saber v${__SABER_VERSION__}`
},
{
name: 'description',
content: `${this.$siteConfig.description || 'A framework for building modern static websites'}`
}
]

if (description) {
defaultMeta.push({
name: 'description',
content: description
})
}

return {
...head,
htmlAttrs,
Expand Down

0 comments on commit f545e29

Please sign in to comment.