diff --git a/website/site/config.yaml b/website/site/config.yaml index 63fa782b..69c141ec 100755 --- a/website/site/config.yaml +++ b/website/site/config.yaml @@ -3,4 +3,18 @@ languageCode: "en-us" title: "Netlify CMS | Open-Source Content Management System" disable404: true pluralizeListTitles: false -metaDataFormat: "yaml" \ No newline at end of file +metaDataFormat: "yaml" +menu: + docs: + - name: start + title: Quick Start + weight: 100 + - name: guides + title: Guides + weight: 200 + - name: reference + title: Reference + weight: 300 + - name: contributing + title: Contributing + weight: 400 \ No newline at end of file diff --git a/website/site/content/docs/add-to-your-site.md b/website/site/content/docs/add-to-your-site.md index e6dc74c7..6eb317f3 100755 --- a/website/site/content/docs/add-to-your-site.md +++ b/website/site/content/docs/add-to-your-site.md @@ -1,7 +1,11 @@ --- title: Add to Your Site -position: 20 +weight: 20 +menu: + docs: + parent: start --- + # Add Netlify CMS to Your Site Netlify CMS is adaptable to a wide variety of projects. The only inflexible requirement is that your site content must be written in markdown, JSON, YAML, or TOML files, stored in a repo on [GitHub](https://github.com/). (If you're partial to another Git hosting service, check out the PRs in progress for [GitLab](https://github.com/netlify/netlify-cms/pull/517) and [Bitbucket](https://github.com/netlify/netlify-cms/pull/525) support.) diff --git a/website/site/content/docs/authentication-backends.md b/website/site/content/docs/authentication-backends.md index 6039a8ec..2d783dc6 100644 --- a/website/site/content/docs/authentication-backends.md +++ b/website/site/content/docs/authentication-backends.md @@ -1,6 +1,9 @@ --- title: Authentication & Backends -position: 25 +weight: 25 +menu: + docs: + parent: start --- # Authentication & Backends diff --git a/website/site/content/docs/beta-features.md b/website/site/content/docs/beta-features.md index e0ed55b9..292d0025 100644 --- a/website/site/content/docs/beta-features.md +++ b/website/site/content/docs/beta-features.md @@ -1,6 +1,9 @@ --- title: Beta Features! -position: 200 +weight: 200 +menu: + docs: + parent: reference --- # Beta Features! We run new functionality in an open beta format from time to time. That means that this functionality is totally available for use, and we _think_ it might be ready for primetime, but it could break or change without notice. diff --git a/website/site/content/docs/collection-types.md b/website/site/content/docs/collection-types.md index a81a01aa..f0b4af24 100644 --- a/website/site/content/docs/collection-types.md +++ b/website/site/content/docs/collection-types.md @@ -1,6 +1,9 @@ --- title: Collection Types -position: 27 +weight: 27 +menu: + docs: + parent: start --- # Collection Types diff --git a/website/site/content/docs/configuration-options.md b/website/site/content/docs/configuration-options.md index 2ec80151..1b8407b2 100644 --- a/website/site/content/docs/configuration-options.md +++ b/website/site/content/docs/configuration-options.md @@ -1,6 +1,9 @@ --- title: Configuration Options -position: 23 +weight: 23 +menu: + docs: + parent: reference --- # Configuration Options diff --git a/website/site/content/docs/contributor-guide.md b/website/site/content/docs/contributor-guide.md index 18896028..e5dd6503 100644 --- a/website/site/content/docs/contributor-guide.md +++ b/website/site/content/docs/contributor-guide.md @@ -1,6 +1,9 @@ --- -title: Contributing -position: 100 +title: Contributor Guide +weight: 100 +menu: + docs: + parent: contributing --- # Welcome, contributors! diff --git a/website/site/content/docs/custom-widgets.md b/website/site/content/docs/custom-widgets.md index eda07c0e..dbd726d6 100644 --- a/website/site/content/docs/custom-widgets.md +++ b/website/site/content/docs/custom-widgets.md @@ -1,6 +1,9 @@ --- -title: Custom Widgets -position: 35 +title: Creating Custom Widgets +weight: 35 +menu: + docs: + parent: guides --- # Custom Widgets diff --git a/website/site/content/docs/examples.md b/website/site/content/docs/examples.md index cbda5bc2..ef34eeb3 100644 --- a/website/site/content/docs/examples.md +++ b/website/site/content/docs/examples.md @@ -1,6 +1,9 @@ --- title: Examples -position: 110 +weight: 110 +menu: + docs: + parent: start --- # Examples diff --git a/website/site/content/docs/intro.md b/website/site/content/docs/intro.md index 6d2de6f6..447ccfec 100755 --- a/website/site/content/docs/intro.md +++ b/website/site/content/docs/intro.md @@ -1,6 +1,9 @@ --- title: Introduction -position: 0 +weight: 1 +menu: + docs: + parent: start --- # Introduction diff --git a/website/site/content/docs/start-with-a-template.md b/website/site/content/docs/start-with-a-template.md index ec7059ef..322f10b1 100644 --- a/website/site/content/docs/start-with-a-template.md +++ b/website/site/content/docs/start-with-a-template.md @@ -1,6 +1,9 @@ --- title: Start with a Template -position: 10 +weight: 10 +menu: + docs: + parent: start --- # Start with a Template diff --git a/website/site/content/docs/update-the-cms-version.md b/website/site/content/docs/update-the-cms-version.md index c2b0dd97..4a83d891 100644 --- a/website/site/content/docs/update-the-cms-version.md +++ b/website/site/content/docs/update-the-cms-version.md @@ -1,6 +1,9 @@ --- title: Update the CMS Version -position: 60 +weight: 60 +menu: + docs: + parent: start --- # Update the CMS Version diff --git a/website/site/content/docs/widgets/index.md b/website/site/content/docs/widgets/index.md index 0f85f5cf..635c2c50 100644 --- a/website/site/content/docs/widgets/index.md +++ b/website/site/content/docs/widgets/index.md @@ -1,6 +1,9 @@ --- title: Widgets -position: 30 +weight: 30 +menu: + docs: + parent: reference --- # Widgets diff --git a/website/site/layouts/_default/list.html b/website/site/layouts/_default/list.html deleted file mode 100644 index 33caf736..00000000 --- a/website/site/layouts/_default/list.html +++ /dev/null @@ -1,35 +0,0 @@ -{{ partial "header" . }} - -
-
- -
- {{ range sort .Data.Pages "Params.position" }} - {{ if eq .Params.position 0 }} -
-

- {{ partial "edit-link" . }} -

- {{ .Content }} -
- {{ end }} - {{ end }} -
-
-
- -{{ partial "footer" . }} diff --git a/website/site/layouts/_default/single.html b/website/site/layouts/_default/single.html index 9d7fc970..b774c783 100644 --- a/website/site/layouts/_default/single.html +++ b/website/site/layouts/_default/single.html @@ -1,37 +1,46 @@ {{ partial "header" . }} {{ $activePage := .Params.position }} -
-
- -
- {{ partial "edit-link" . }} - {{ .Content }} - {{- if eq .Title "Widgets" -}} - {{- partial "widgets" . -}} - {{- end -}} -
-
+
+
+ +
+ {{ partial "edit-link" . }} + {{ .Content }} + {{- if eq .Title "Widgets" -}} + {{- partial "widgets" . -}} + {{- end -}} +
+
{{ partial "footer" . }} diff --git a/website/site/layouts/partials/header.html b/website/site/layouts/partials/header.html index 0226b568..00e71b7e 100755 --- a/website/site/layouts/partials/header.html +++ b/website/site/layouts/partials/header.html @@ -37,7 +37,7 @@ {{ end }}