From 69939e49d6b34011ea2fa997508e500908f49b59 Mon Sep 17 00:00:00 2001 From: Patzick Date: Tue, 24 Apr 2018 00:59:49 +0200 Subject: [PATCH 1/5] ignore webstorm files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 96930bdd73..ceb37740ab 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules .temp vuepress TODOs.md +.idea/ \ No newline at end of file From b1296fdba7fe2760026dcfbf3e05530a84081ed5 Mon Sep 17 00:00:00 2001 From: Patzick Date: Tue, 24 Apr 2018 01:04:18 +0200 Subject: [PATCH 2/5] disabling navbar as frontmatter option --- lib/default-theme/Layout.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/default-theme/Layout.vue b/lib/default-theme/Layout.vue index de3b9add8f..bcb6436daa 100644 --- a/lib/default-theme/Layout.vue +++ b/lib/default-theme/Layout.vue @@ -41,6 +41,8 @@ export default { computed: { shouldShowNavbar () { const { themeConfig } = this.$site + const { frontmatter } = this.$page + if (frontmatter.navbar === false) return false return ( this.$title || themeConfig.logo || From 17344fa6d348f089e098ff6e1adcf7b413b12d4a Mon Sep 17 00:00:00 2001 From: Patzick Date: Tue, 24 Apr 2018 01:07:11 +0200 Subject: [PATCH 3/5] navbar disabling docs, reorganize navbar section in default-theme-config --- docs/default-theme-config/README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/default-theme-config/README.md b/docs/default-theme-config/README.md index 7651e20acc..4b5ec34d44 100644 --- a/docs/default-theme-config/README.md +++ b/docs/default-theme-config/README.md @@ -33,7 +33,11 @@ Any additional content after the `YAML front matter` will be parsed as normal ma If you want to use a completely custom homepage layout, you can also use a [Custom Layout](#custom-layout-for-specific-pages). -## Navbar Links +## Navbar + +Head navigation bar may contains your page title, [Search Box](#search-box), [Navbar Links](#navbar-links), [Languages](/guide/i18n.html#internationalization) and [Repository link](/default-theme-config/#git-repo-and-edit-links) - all of it depends on your configuration. + +### Navbar Links You can add links to the navbar via `themeConfig.nav`: @@ -86,6 +90,16 @@ module.exports = { } ``` +### Disabling the Navbar + +You can disable the navbar on a specific page with `YAML front matter`: + +``` yaml +--- +navbar: false +--- +``` + ## Sidebar To enable the sidebar, use `themeConfig.sidebar`. The basic configuration expects an Array of links: From 1102576fceba25d1d1c71a0b5f95272ec3a0b12e Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Tue, 24 Apr 2018 15:05:08 +0800 Subject: [PATCH 4/5] Chore: tweaks --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index ceb37740ab..96930bdd73 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ node_modules .temp vuepress TODOs.md -.idea/ \ No newline at end of file From 18c54c460410c89ff4dc0d57687f67a92fd84d8c Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Tue, 24 Apr 2018 15:09:07 +0800 Subject: [PATCH 5/5] docs: tweaks --- docs/default-theme-config/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/default-theme-config/README.md b/docs/default-theme-config/README.md index 4b5ec34d44..e8a35fa12a 100644 --- a/docs/default-theme-config/README.md +++ b/docs/default-theme-config/README.md @@ -35,7 +35,7 @@ If you want to use a completely custom homepage layout, you can also use a [Cust ## Navbar -Head navigation bar may contains your page title, [Search Box](#search-box), [Navbar Links](#navbar-links), [Languages](/guide/i18n.html#internationalization) and [Repository link](/default-theme-config/#git-repo-and-edit-links) - all of it depends on your configuration. +The Navbar may contain your page title, [Search Box](#search-box), [Navbar Links](#navbar-links), [Languages](/guide/i18n.html#internationalization) and [Repository link](/default-theme-config/#git-repo-and-edit-links) - all of them depends on your configuration. ### Navbar Links @@ -90,9 +90,9 @@ module.exports = { } ``` -### Disabling the Navbar +### Disable the Navbar -You can disable the navbar on a specific page with `YAML front matter`: +You can disable the navbar for a specific page via `YAML front matter`: ``` yaml ---