vuepress
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -0,1 +1,15 @@ | ||
<a name="0.7.1"></a> | ||
## [0.7.1](https://github.com/vuejs/vuepress/compare/v0.7.0...v0.7.1) (2018-04-20) | ||
### Bug Fixes | ||
* infer source link label from repo url ([#168](https://github.com/vuejs/vuepress/issues/168)) ([c1bbd05](https://github.com/vuejs/vuepress/commit/c1bbd05)) | ||
* Only add language dropdown when there has more than one locale configured. ([#181](https://github.com/vuejs/vuepress/issues/181)) ([7f311da](https://github.com/vuejs/vuepress/commit/7f311da)) | ||
* prioritize frontmatter's title, description and lang ([#180](https://github.com/vuejs/vuepress/issues/180)) ([384c5c7](https://github.com/vuejs/vuepress/commit/384c5c7)), closes [#177](https://github.com/vuejs/vuepress/issues/177) [#184](https://github.com/vuejs/vuepress/issues/184) | ||
* redirect /foo to /foo/ during dev (close [#183](https://github.com/vuejs/vuepress/issues/183)) ([99bc0aa](https://github.com/vuejs/vuepress/commit/99bc0aa)) | ||
* show navbar in more conditions (close [#170](https://github.com/vuejs/vuepress/issues/170)) ([748fa7f](https://github.com/vuejs/vuepress/commit/748fa7f)) | ||
<a name="0.7.0"></a> | ||
@@ -2,0 +16,0 @@ # [0.7.0](https://github.com/vuejs/vuepress/compare/v0.6.1...v0.7.0) (2018-04-18) |
@@ -66,2 +66,13 @@ import Vue from 'vue' | ||
// redirect /foo to /foo/ | ||
router.beforeEach((to, from, next) => { | ||
if (!/(\/|\.html)$/.test(to.path)) { | ||
next(Object.assign({}, to, { | ||
path: to.path + '/' | ||
})) | ||
} else { | ||
next() | ||
} | ||
}) | ||
const options = {} | ||
@@ -68,0 +79,0 @@ |
@@ -40,3 +40,3 @@ import Vue from 'vue' | ||
let defaultLang | ||
Object.keys(locales).forEach(path => { | ||
for (const path in locales) { | ||
if (path === '/') { | ||
@@ -47,13 +47,13 @@ defaultLang = locales[path] | ||
} | ||
}) | ||
} | ||
return targetLang || defaultLang || {} | ||
}, | ||
$title () { | ||
return this.$localeConfig.title || this.$site.title || '' | ||
return this.$page.frontmatter.title || this.$localeConfig.title || this.$site.title || '' | ||
}, | ||
$description () { | ||
return this.$localeConfig.description || this.$site.description || '' | ||
return this.$page.frontmatter.description || this.$localeConfig.description || this.$site.description || '' | ||
}, | ||
$lang () { | ||
return this.$localeConfig.lang || 'en-US' | ||
return this.$page.frontmatter.lang || this.$localeConfig.lang || 'en-US' | ||
}, | ||
@@ -60,0 +60,0 @@ $localePath () { |
{ | ||
"name": "vuepress", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Minimalistic doc generator with Vue component based layout system", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
122767
59
1971
17