Tests updated

This commit is contained in:
PLanCompS
2020-09-28 12:08:27 +02:00
parent 76f8f064ac
commit aa247408e4
33 changed files with 288 additions and 155 deletions

View File

@@ -0,0 +1,13 @@
---
layout: default
title: "0"
has_children: true
nav_exclude: true
---
# Tests for exclusion 0
```yaml
title: "0"
has_children: true
nav_exclude: true
```

View File

@@ -0,0 +1,15 @@
---
layout: default
title: "00"
parent: "0"
has_children: true
nav_exclude: true
---
# Tests for exclusion 00
```yaml
title: "00"
parent: "0"
has_children: true
nav_exclude: true
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "000"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: true
---
# Tests for exclusion 000
```yaml
title: "000"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: true
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "001"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: false
---
# Tests for exclusion 001
```yaml
title: "001"
parent: "00"
grand_parent: "0"
has_children: false
nav_exclude: false
```

View File

@@ -0,0 +1,15 @@
---
layout: default
title: "01"
parent: "0"
has_children: true
nav_exclude: false
---
# Tests for exclusion 01
```yaml
title: "01"
parent: "0"
has_children: true
nav_exclude: false
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "010"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: true
---
# Tests for exclusion 010
```yaml
title: "010"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: true
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "011"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: false
---
# Tests for exclusion 011
```yaml
title: "011"
parent: "01"
grand_parent: "0"
has_children: false
nav_exclude: false
```

View File

@@ -0,0 +1,13 @@
---
layout: default
title: "1"
has_children: true
nav_exclude: false
---
# Tests for exclusion 1
```yaml
title: "1"
has_children: true
nav_exclude: false
```

View File

@@ -0,0 +1,15 @@
---
layout: default
title: "10"
parent: "1"
has_children: true
nav_exclude: true
---
# Tests for exclusion 10
```yaml
title: "10"
parent: "1"
has_children: true
nav_exclude: true
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "100"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: true
---
# Tests for exclusion 100
```yaml
title: "100"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: true
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "101"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: false
---
# Tests for exclusion 101
```yaml
title: "101"
parent: "10"
grand_parent: "1"
has_children: false
nav_exclude: false
```

View File

@@ -0,0 +1,15 @@
---
layout: default
title: "11"
parent: "1"
has_children: true
nav_exclude: false
---
# Tests for exclusion 11
```yaml
title: "11"
parent: "1"
has_children: true
nav_exclude: false
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "110"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: true
---
# Tests for exclusion 110
```yaml
title: "110"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: true
```

View File

@@ -0,0 +1,17 @@
---
layout: default
title: "111"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: false
---
# Tests for exclusion 111
```yaml
title: "111"
parent: "11"
grand_parent: "1"
has_children: false
nav_exclude: false
```

View File

@@ -1,15 +0,0 @@
---
layout: default
title: Excluded Child
parent: Not Excluded
nav_exclude: true
---
# Excluded Child
This child page is explicitly excluded, and should not appear in the navigation.
```yaml
title: Excluded Child
parent: Not Excluded
nav_exclude: true
```

View File

@@ -1,17 +0,0 @@
---
layout: default
title: Excluded Grandchild
parent: Non-excluded Child
grand_parent: Non-excluded
nav_exclude: true
---
# Excluded Grandchild
This grandchild page is explicitly excluded, and should not appear in the navigation.
```yaml
title: Excluded Grandchild
parent: Non-excluded Child
grand_parent: Non-excluded
nav_exclude: true
```

View File

@@ -1,15 +0,0 @@
---
layout: default
title: Excluded
has_children: true
nav_exclude: true
---
# Excluded
This top-level page is explicitly excluded, and should not appear in the navigation. Any child pages are implicitly excluded.
```yaml
title: Excluded
has_children: true
nav_exclude: true
```

View File

@@ -0,0 +1,32 @@
---
layout: default
title: Exclusion
parent: Navigation
grand_parent: Tests
---
# Tests for exclusion Exclusion
## Tests for exclusion Included in main navigation
- ["1"](1/)
- ["11"](11/)
- ["111"](111/)
## Tests for exclusion Included only in child navigation
- ["110"](110/)
- ["10"](10/)
- ["101"](101/)
- ["100"](100/)
## Tests for exclusion Not included in navigation
- ["0"](0/)
- ["01"](01/)
- ["011"](011/)
- ["010"](010/)
- ["00"](00/)
- ["001"](001/)
- ["000"](000/)
- ["Untitled"](untitled/)

View File

@@ -1,15 +0,0 @@
---
layout: default
title: Non-excluded Child of Excluded
parent: Excluded
nav_exclude: false
---
# Non-excluded Child of Excluded
This child page is explicitly not excluded, but its parent page is excluded, so it should not appear in the navigation.
```yaml
title: Non-excluded Child of Excluded
parent: Excluded
nav_exclude: false
```

View File

@@ -1,16 +0,0 @@
---
layout: default
title: Non-excluded Child
parent: Non-excluded
has_children: true
nav_exclude: false
---
# Non-excluded Child
This child page is explicitly not excluded, and should appear in the navigation.
```yaml
title: Non-excluded Child
parent: Non-excluded
nav_exclude: false
```

View File

@@ -1,17 +0,0 @@
---
layout: default
title: Non-excluded Grandchild of Excluded
parent: Non-excluded Child
grand_parent: Excluded
nav_exclude: false
---
# Non-excluded Grandchild of Excluded
This grandchild page is explicitly not excluded, and neither is its parent page; but its grandparent page is excluded, so it should not appear in the navigation.
```yaml
title: Non-excluded Grandchild of Excluded
parent: Non-excluded Child
grand_parent: Excluded
nav_exclude: false
```

View File

@@ -1,17 +0,0 @@
---
layout: default
title: Non-excluded Grandchild
parent: Non-excluded Child
grand_parent: Non-excluded
nav_exclude: false
---
# Non-excluded Grandchild
This grandchild page is explicitly not excluded, and neither is its parent page nor its grandparent page, so it should appear in the navigation.
```yaml
title: Non-excluded Grandchild of Excluded
parent: Non-excluded Child
grand_parent: Excluded
nav_exclude: false
```

View File

@@ -1,14 +0,0 @@
---
layout: default
title: Non-excluded
has_children: true
nav_exclude: false
---
# Non-excluded
This top-level page is explicitly not excluded, and should appear in the navigation.
```yaml
title: Non-excluded
nav_exclude: false
```

View File

@@ -1,6 +1,6 @@
---
layout: default
---
# Untitled
# Tests for exclusion Untitled
This page does not have a `title`, and it is excluded from the navigation -- unless it is located in a Jekyll collection (which provides default titles). To exclude a title-less page from the navigation, regardless of whether it is located in a collection, set `nav_exclude: true`.