Skip to content

Commit 528cf29

Browse files
committed
rename type to test
Signed-off-by: Aabid Sofi <[email protected]>
1 parent 135cdb1 commit 528cf29

File tree

7 files changed

+23
-29
lines changed

7 files changed

+23
-29
lines changed

archetypes/final-test.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: '{{ replace .File.ContentBaseName `-` ` ` | title }}'
3-
pass_percentage: 70 # Minimum percentage required to pass the quiz
4-
time_limit: 15 # Duration of the quiz in minutes
5-
difficulty: "beginner" # Difficulty level of the quiz
6-
category: "Programming Languages" # Category of the quiz
7-
tags: ["golang", "basics", "syntax", "fundamentals"] # Tags for the quiz, useful for search and categorization
8-
type: "quiz" # Type of the content, in this case, a quiz ( required for the quiz to be recognized by the system )
9-
final: true # Indicates that this quiz is the final exam and must be completed to complete the course , module or section
3+
pass_percentage: 70 # Minimum percentage required to pass the test
4+
time_limit: 15 # Duration of the test in minutes
5+
difficulty: "beginner" # Difficulty level of the test
6+
category: "Programming Languages" # Category of the test
7+
tags: ["golang", "basics", "syntax", "fundamentals"] # Tags for the test, useful for search and categorization
8+
type: "test" # Type of the content, in this case, a test ( required for the test to be recognized by the system )
9+
final: true # Indicates that this test is the final exam and must be completed to complete the course , module or section
1010

1111
questions:
1212
# Multiple Choice Question (Single Answer)
@@ -67,5 +67,3 @@ questions:
6767
text: "To handle errors in a function"
6868
is_correct: false
6969
---
70-
71-

archetypes/optional-test.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: '{{ replace .File.ContentBaseName `-` ` ` | title }}'
3-
pass_percentage: 70 # Minimum percentage required to pass the quiz
4-
time_limit: 15 # Duration of the quiz in minutes
5-
difficulty: "beginner" # Difficulty level of the quiz
6-
category: "Programming Languages" # Category of the quiz
7-
tags: ["golang", "basics", "syntax", "fundamentals"] # Tags for the quiz, useful for search and categorization
8-
type: "quiz" # Type of the content, in this case, a quiz ( required for the quiz to be recognized by the system )
9-
is_optional: true # Indicates that this quiz is optional and does not need to be completed to take the final exam
3+
pass_percentage: 70 # Minimum percentage required to pass the test
4+
time_limit: 15 # Duration of the test in minutes
5+
difficulty: "beginner" # Difficulty level of the test
6+
category: "Programming Languages" # Category of the test
7+
tags: ["golang", "basics", "syntax", "fundamentals"] # Tags for the test, useful for search and categorization
8+
type: "test" # Type of the content, in this case, a test ( required for the test to be recognized by the system )
9+
is_optional: true # Indicates that this test is optional and does not need to be completed to take the final exam
1010

1111
questions:
1212
# Multiple Choice Question (Single Answer)
@@ -67,5 +67,3 @@ questions:
6767
text: "To handle errors in a function"
6868
is_correct: false
6969
---
70-
71-

archetypes/test.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: 'Quiz'
3-
pass_percentage: 70 # Minimum percentage required to pass the quiz
4-
time_limit: 15 # Duration of the quiz in minutes
5-
difficulty: "beginner" # Difficulty level of the quiz
6-
category: "Programming Languages" # Category of the quiz
7-
tags: ["golang", "basics", "syntax", "fundamentals"] # Tags for the quiz, useful for search and categorization
8-
type: "quiz" # Type of the content, in this case, a quiz ( required for the quiz to be recognized by the system )
2+
title: 'test'
3+
pass_percentage: 70 # Minimum percentage required to pass the test
4+
time_limit: 15 # Duration of the test in minutes
5+
difficulty: "beginner" # Difficulty level of the test
6+
category: "Programming Languages" # Category of the test
7+
tags: ["golang", "basics", "syntax", "fundamentals"] # Tags for the test, useful for search and categorization
8+
type: "test" # Type of the content, in this case, a test ( required for the test to be recognized by the system )
99

1010
questions:
1111
# Multiple Choice Question (Single Answer)
@@ -66,5 +66,3 @@ questions:
6666
text: "To handle errors in a function"
6767
is_correct: false
6868
---
69-
70-

layouts/partials/test/is-final.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
{{- with $page.Parent -}}
77
{{- range .Pages -}}
8-
{{- if eq .Params.Type "quiz" -}}
8+
{{- if eq .Params.Type "test" -}}
99
{{- $siblingWeight := or .Params.weight .Params.Order 0 -}}
1010
{{- if gt $siblingWeight $maxWeight -}}
1111
{{- $maxWeight = $siblingWeight -}}
@@ -14,7 +14,7 @@
1414
{{- end -}}
1515
{{- end -}}
1616

17-
{{- if and (eq $page.Params.Type "quiz") (or (eq $currentWeight $maxWeight) (gt $maxWeight $currentWeight)) -}}
17+
{{- if and (eq $page.Params.Type "test") (or (eq $currentWeight $maxWeight) (gt $maxWeight $currentWeight)) -}}
1818
{{- $isFinal = true -}}
1919
{{- end -}}
2020

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)