Skip to content

Commit 1e54b8d

Browse files
committed
docs/draft: omit section from left hand nav
This stops the /docs/draft/ section from appearing in the left hand nav when drafts are enabled. Also: the same change for the language-guide section. Preview-Path: /docs/ Signed-off-by: Jonathan Matthews <github@hello.jonathanmatthews.com> Change-Id: I95faa48150d8bb74b8a54c1feebc45906f81aa90 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1207172 Reviewed-by: Paul Jolly <paul@myitcv.io> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
1 parent ed6194f commit 1e54b8d

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

content/docs/draft/_en.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
title: Draft / Test pages
2+
title: Drafts
33
weight: 10000
44
draft: true
5+
toc_hide: true
56
---
67

7-
These pages are only included in the local, development version of the site in
8-
order to test their code blocks automatically. They *must* be marked as drafts
9-
(`draft: true` in the front matter YAML) to ensure they're not visible on
10-
cuelang.org.
8+
Pages in this section *must* be marked as drafts (`draft: true` in the front
9+
matter YAML) to ensure they're not visible on cuelang.org.
1110

1211
List of pages tested:

content/docs/language-guide/_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Language Guide
33
weight: 20
4-
toc_hide: false
4+
toc_hide: true
55
draft: true
66
---
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
title: Draft / Test pages
2+
title: Drafts
33
weight: 10000
44
draft: true
5+
toc_hide: true
56
---
67

7-
These pages are only included in the local, development version of the site in
8-
order to test their code blocks automatically. They *must* be marked as drafts
9-
(`draft: true` in the front matter YAML) to ensure they're not visible on
10-
cuelang.org.
8+
Pages in this section *must* be marked as drafts (`draft: true` in the front
9+
matter YAML) to ensure they're not visible on cuelang.org.
1110

1211
List of pages tested:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Language Guide
33
weight: 20
4-
toc_hide: false
4+
toc_hide: true
55
draft: true
66
---

0 commit comments

Comments
 (0)