Skip to content

Commit

Permalink
added questions to course format
Browse files Browse the repository at this point in the history
  • Loading branch information
cecepasinechka committed Aug 29, 2024
1 parent e75fc29 commit 2687883
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions _courses/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ executionStartDate: "2024-06-17"
executionData: |
Predavanja: 17. 6. in 18. 6.
Vaje: 19. 6. in 20. 6.
questions: |
Ali..?
Če...?
---
3 changes: 2 additions & 1 deletion _layouts/course-data-filtered.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"cType": "{{ course.cType }}",
{% if course.notifyEmail and course.notifyEmail != "" %}"notifyEmail": "{{ course.notifyEmail }}"{% else %}"notifyEmail": ""{% endif %},
{% if course.executionStartDate and course.executionStartDate != "" %}"executionStartDate": "{{ course.executionStartDate }}"{% else %}"executionStartDate": ""{% endif %},
{% if course.executionData and course.executionData != "" %}"executionData": "{{ course.executionData | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" | strip_newlines | replace: '"', '\"' }}"{% else %}"executionData": ""{% endif %}
{% if course.executionData and course.executionData != "" %}"executionData": "{{ course.executionData | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" | strip_newlines | replace: '"', '\"' }}"{% else %}"executionData": ""{% endif %},
{% if course.questions and course.questions != "" %}"questions": "{{ course.questions | newline_to_br | strip_newlines | replace: ' ', '\\n' | replace: '"', '\"' | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" }}"{% else %}"questions": ""{% endif %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]
3 changes: 2 additions & 1 deletion _layouts/course-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"cType": "{{ course.cType }}",
{% if course.notifyEmail and course.notifyEmail != "" %}"notifyEmail": "{{ course.notifyEmail }}"{% else %}"notifyEmail": ""{% endif %},
{% if course.executionStartDate and course.executionStartDate != "" %}"executionStartDate": "{{ course.executionStartDate }}"{% else %}"executionStartDate": ""{% endif %},
{% if course.executionData and course.executionData != "" %}"executionData": "{{ course.executionData | strip_newlines | replace: '"', '\"' }}"{% else %}"executionData": ""{% endif %}
{% if course.executionData and course.executionData != "" %}"executionData": "{{ course.executionData | strip_newlines | replace: '"', '\"' }}"{% else %}"executionData": ""{% endif %},
{% if course.questions and course.questions != "" %}"questions": "{{ course.questions | newline_to_br | strip_newlines | replace: ' ', '\\n' | replace: '"', '\"' }}"{% else %}"questions": ""{% endif %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]

0 comments on commit 2687883

Please sign in to comment.